Skip to content

Commit

Permalink
fix: handle negative due date for service levels
Browse files Browse the repository at this point in the history
  • Loading branch information
ccailly authored and btry committed Aug 30, 2024
1 parent 17c0358 commit ed147ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/abstractitiltarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,10 @@ protected function setTargetDueDate($data, PluginFormcreatorFormAnswer $formansw
$period = "month";
break;
}
$str = "+" . $this->fields['due_date_value'] . " $period";
$str = $this->fields['due_date_value'] . " $period";
if ($str[0] !== '-') {
$str = '+' . $str;
}

switch ($this->fields['due_date_rule']) {
case self::DUE_DATE_RULE_ANSWER:
Expand Down

0 comments on commit ed147ef

Please sign in to comment.