Fix: regression for tickets with just a default initial state.

SVN:trunk[1522]
This commit is contained in:
Denis Flaven
2011-08-26 07:26:30 +00:00
parent 186ba76092
commit c337616fea

View File

@@ -1373,7 +1373,10 @@ EOF
if (!empty($sStateAttCode))
{
$sTargetState = utils::ReadPostedParam('obj_state', '');
$oObj->Set($sStateAttCode, $sTargetState);
if ($sTargetState != '')
{
$oObj->Set($sStateAttCode, $sTargetState);
}
}
$oObj->UpdateObjectFromPostedForm();
}