Skip to content

Commit

Permalink
fix(targetticket): bad class for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 31, 2022
1 parent 61cf134 commit 475d4ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inc/targetticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,10 @@ public function prepareInputForUpdate($input) {

if (isset($input['urgency_rule'])) {
switch ($input['urgency_rule']) {
case PluginFormcreatorAbstractTarget::URGENCY_RULE_ANSWER:
case self::URGENCY_RULE_ANSWER:
$input['urgency_question'] = $input['_urgency_question'];
break;
case PluginFormcreatorAbstractTarget::URGENCY_RULE_SPECIFIC:
case self::URGENCY_RULE_SPECIFIC:
$input['urgency_question'] = $input['_urgency_specific'];
break;
default:
Expand All @@ -594,11 +594,11 @@ public function prepareInputForUpdate($input) {

if (isset($input['sla_rule'])) {
switch ($input['sla_rule']) {
case PluginFormcreatorAbstractTarget::SLA_RULE_SPECIFIC:
case self::SLA_RULE_SPECIFIC:
$input['sla_question_tto'] = $input['_sla_specific_tto'];
$input['sla_question_ttr'] = $input['_sla_specific_ttr'];
break;
case PluginFormcreatorAbstractTarget::SLA_RULE_FROM_ANWSER:
case self::SLA_RULE_FROM_ANWSER:
$input['sla_question_tto'] = $input['_sla_questions_tto'];
$input['sla_question_ttr'] = $input['_sla_questions_ttr'];
break;
Expand All @@ -607,11 +607,11 @@ public function prepareInputForUpdate($input) {

if (isset($input['ola_rule'])) {
switch ($input['ola_rule']) {
case PluginFormcreatorAbstractTarget::OLA_RULE_SPECIFIC:
case self::OLA_RULE_SPECIFIC:
$input['ola_question_tto'] = $input['_ola_specific_tto'];
$input['ola_question_ttr'] = $input['_ola_specific_ttr'];
break;
case PluginFormcreatorAbstractTarget::OLA_RULE_FROM_ANWSER:
case self::OLA_RULE_FROM_ANWSER:
$input['ola_question_tto'] = $input['_ola_questions_tto'];
$input['ola_question_ttr'] = $input['_ola_questions_ttr'];
break;
Expand Down

0 comments on commit 475d4ae

Please sign in to comment.