From 8d2685720b6750b1492cad1857633b1c1539a1bc Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Wed, 20 Jan 2021 16:02:34 +0100 Subject: [PATCH] fix(actorsfield): missed function rename Signed-off-by: Thierry Bugier --- js/scripts.js.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/scripts.js.php b/js/scripts.js.php index 46cd53427..801cb4561 100644 --- a/js/scripts.js.php +++ b/js/scripts.js.php @@ -1417,7 +1417,7 @@ function pluginFormcreatorInitializeField(fieldName, rand) { */ function pluginFormcreatorInitializeActor(fieldName, rand, initialValue) { var field = $('[name="' + fieldName + '[]"]'); - var dropdownMax = ; + var dropdownMax = CFG_GLPI['dropdown_max']; field.select2({ width: '80%', minimumInputLength: 0, @@ -1481,7 +1481,7 @@ function pluginFormcreatorInitializeActor(fieldName, rand, initialValue) { function pluginFormcreatorInitializeActor2(fieldName, rand) { var field = $('select[name="' + fieldName + '[]"]'); field.on("change", function(e) { - formcreatorShowFields($(field[0].form)); + plugin_formcreator.showFields($(field[0].form)); }); }