Skip to content

Commit

Permalink
fix(targetticket): request type may be unset
Browse files Browse the repository at this point in the history
need to not override default setting in glpi or a ticket template

Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Feb 3, 2020
1 parent dd970c5 commit 5caf1b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/targetticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class PluginFormcreatorTargetTicket extends PluginFormcreatorTargetBase
const ASSOCIATE_RULE_SPECIFIC = 2;
const ASSOCIATE_RULE_ANSWER = 3;

const REQUESTTYPE_NONE = 0;
const REQUESTTYPE_SPECIFIC = 1;
const REQUESTTYPE_ANSWER = 2;

Expand Down Expand Up @@ -92,6 +93,7 @@ public static function getEnumAssociateRule() {

public static function getEnumRequestTypeRule() {
return [
self::REQUESTTYPE_NONE => __('Default or from a template', 'formcreator'),
self::REQUESTTYPE_SPECIFIC => __('Specific type', 'formcreator'),
self::REQUESTTYPE_ANSWER => __('Equals to the answer to the question', 'formcreator'),
];
Expand Down

0 comments on commit 5caf1b0

Please sign in to comment.