N°8692 - Notification: Fix AttributeSubitem placeholder behavior - fix for 3.3

This commit is contained in:
Anne-Cath
2026-03-23 15:45:09 +01:00
parent 9328f6d916
commit a6de103b4a

View File

@@ -578,7 +578,10 @@ class AttributeStopWatch extends AttributeDefinition
switch ($sThresholdCode) {
case 'deadline':
if ($value) {
if (is_int($value)) {
if (is_numeric($value)) {
if (!is_int($value)) {
$value = intval($value);
}
$sDate = date(AttributeDateTime::GetInternalFormat(), $value);
$sRet = AttributeDeadline::FormatDeadline($sDate);
} else {