From 04e6df06a221216c3944b287b4eef5f276812548 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 8 Mar 2019 10:18:07 +0100 Subject: [PATCH] fix(targetticket,targetchange): fix misuse of constants Signed-off-by: Thierry Bugier --- inc/targetbase.class.php | 73 +++++++++++++++++++++----------------- inc/targetticket.class.php | 14 ++++---- 2 files changed, 48 insertions(+), 39 deletions(-) diff --git a/inc/targetbase.class.php b/inc/targetbase.class.php index cf7400813..9a950fb53 100644 --- a/inc/targetbase.class.php +++ b/inc/targetbase.class.php @@ -819,14 +819,15 @@ protected function showCategorySettings(PluginFormcreatorForm $form, $rand) { echo '' . __('Ticket category', 'formcreator') . ''; echo ''; Dropdown::showFromArray( - 'category_rule', - static::getEnumCategoryRule(), - [ - 'value' => $this->fields['category_rule'], - 'on_change' => 'change_category()', - 'rand' => $rand, - ]); - $script = << $this->fields['category_rule'], + 'on_change' => 'change_category()', + 'rand' => $rand, + ] + ); + $script = <<