From 9c9dc8962f92f77ea17e66106d7437f35e0c75e4 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 20 Mar 2020 17:07:39 +0100 Subject: [PATCH] fix(question): default value edition for dropdown types Signed-off-by: Thierry Bugier --- js/scripts.js.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/scripts.js.php b/js/scripts.js.php index 781551e14..ffa3c3429 100644 --- a/js/scripts.js.php +++ b/js/scripts.js.php @@ -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', @@ -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',