diff --git a/front/targetticket.form.php b/front/targetticket.form.php index b8411de30..f7fe103c9 100644 --- a/front/targetticket.form.php +++ b/front/targetticket.form.php @@ -41,7 +41,7 @@ $targetticket = new PluginFormcreatorTargetTicket(); // Edit an existing target ticket -if (isset($_POST["update"])) { +if (isset($_POST['update'])) { $targetticket->update($_POST); Html::back(); diff --git a/inc/targetbase.class.php b/inc/targetbase.class.php index 011d6aa6c..26a49a554 100644 --- a/inc/targetbase.class.php +++ b/inc/targetbase.class.php @@ -776,7 +776,7 @@ protected function showDueDateSettings(PluginFormcreatorForm $form, $rand) { Dropdown::showFromArray('due_date_rule', self::getEnumDueDateRule(), [ 'value' => $this->fields['due_date_rule'], - 'on_change' => 'formcreatorChangeDueDate(this.value)', + 'on_change' => 'plugin_formcreator_formcreatorChangeDueDate(this.value)', 'display_emptychoice' => true ] ); @@ -1102,27 +1102,27 @@ protected function showActorsSettings() { // Requester header echo ''; echo _n('Requester', 'Requesters', 1) . '  '; - echo 'Ajouter'; - echo ''; echo ''; // Watcher header echo ''; echo _n('Watcher', 'Watchers', 1) . '  '; - echo 'Ajouter'; - echo ''; echo ''; // Assigned header echo ''; echo __('Assigned to') . '  '; - echo 'Ajouter'; - echo ''; echo ''; @@ -1143,13 +1143,13 @@ protected function showActorsSettings() { Dropdown::showFromArray( 'actor_type', $dropdownItems, [ - 'on_change' => 'formcreatorChangeActorRequester(this.value)' + 'on_change' => 'plugin_formcreator_ChangeActorRequester(this.value)' ] ); echo '