Skip to content

Commit

Permalink
fix(ldapselectfield): use of uninitialized var
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Apr 20, 2022
1 parent 536edbf commit 376e210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function testCreateForm() {
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] select[name="show_empty"]');
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] input[name="ldap_filter"]');
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] select[name="ldap_attribute"]');
$this->client->waitForVisibility('form[data-itemtype="PluginFormcreatorQuestion"] select[name="ldap_auth"]');

$authLdap = new \AuthLDAP();
$ldaps = $authLdap->find([], [], 1);
Expand Down
3 changes: 2 additions & 1 deletion tests/src/CommonBrowsing.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ public function selectInDropdown($selector, $value, $name = '') {
var exists = $('$slashSelector option[value=\"$htmlValue\"]');
if (exists.length < 1) {
var newOption = new Option('$slashName', '$slashValue', true, true);
$('$slashSelector').append(newOption)
} else {
$('$slashSelector').val('$slashValue');
}
$('$slashSelector').append(newOption).trigger('change');
$('$slashSelector').trigger('change');
";
$this->test->client->executeScript($js);
}
Expand Down

0 comments on commit 376e210

Please sign in to comment.