mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N.445 Specifying a date format (other than the default one) and allowing to create a user request in the resolved status results in an error when selecting the resolved status.
SVN:trunk[4433]
This commit is contained in:
@@ -138,6 +138,22 @@ class WizardHelper
|
|||||||
$oObj->Set($sAttCode, $value);
|
$oObj->Set($sAttCode, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ($oAttDef instanceof AttributeDateTime) // AttributeDate is derived from AttributeDateTime
|
||||||
|
{
|
||||||
|
if ($value != null)
|
||||||
|
{
|
||||||
|
$oDate = $oAttDef->GetFormat()->Parse($value);
|
||||||
|
if ($oDate instanceof DateTime)
|
||||||
|
{
|
||||||
|
$value = $oDate->format($oAttDef->GetInternalFormat());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$value = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$oObj->Set($sAttCode, $value);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$oObj->Set($sAttCode, $value);
|
$oObj->Set($sAttCode, $value);
|
||||||
|
|||||||
Reference in New Issue
Block a user