Skip to content

Commit

Permalink
fix(question): default value edition for dropdown types
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 23, 2020
1 parent a42ec4e commit 9c9dc89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@ function plugin_formcreator_removeNextCondition(target) {
}

function plugin_formcreator_changeDropdownItemtype(rand) {
dropdown_type = $('[name="plugin_formcreator_form"] [name="dropdown_values"]').val();
dropdown_id = $('[name="plugin_formcreator_form"] [name="id"]').val();
dropdown_type = $('[name="plugin_formcreator_questionform"] [name="dropdown_values"]').val();
dropdown_id = $('[name="plugin_formcreator_questionform"] [name="id"]').val();

$.ajax({
url: rootDoc + '/plugins/formcreator/ajax/dropdown_values.php',
Expand Down Expand Up @@ -880,8 +880,8 @@ function plugin_formcreator_changeDropdownItemtype(rand) {
}

function plugin_formcreator_changeGlpiObjectItemType() {
glpi_object = $('[name="plugin_formcreator_form"] [name="glpi_objects"]').val();
glpi_object_id = $('[name="plugin_formcreator_form"] [name="id"]').val();
glpi_object = $('[name="plugin_formcreator_questionform"] [name="glpi_objects"]').val();
glpi_object_id = $('[name="plugin_formcreator_questionform"] [name="id"]').val();

$.ajax({
url: rootDoc + '/plugins/formcreator/ajax/dropdown_values.php',
Expand Down

0 comments on commit 9c9dc89

Please sign in to comment.