Skip to content

Commit 09e3a3a

Browse files
committed
fix(ldapfield): PHP warning when editing the question
fix #2116 Signed-off-by: Thierry Bugier <[email protected]>
1 parent cbbff5c commit 09e3a3a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

inc/field/ldapselectfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function getDesignSpecializationField(): array {
103103
$additions .= '<td colspan="2">&nbsp;</td>';
104104
$additions .= '</tr>';
105105

106-
$common = parent::getDesignSpecializationField();
106+
$common = PluginFormcreatorAbstractField::getDesignSpecializationField();
107107
$additions .= $common['additions'];
108108

109109
return [

tests/4-functional/Glpi/Plugin/Formcreator/Field/LdapSelectField.php

-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ public function testCreateForm() {
7272
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] select[name="show_empty"]');
7373
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] input[name="ldap_filter"]');
7474
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] select[name="ldap_attribute"]');
75-
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] input[name="default_values"]');
76-
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] textarea[name="values"]');
7775

7876
$authLdap = new \AuthLDAP();
7977
$ldaps = $authLdap->find([], [], 1);

0 commit comments

Comments
 (0)