Ver Fonte

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1522 a333f486-631f-4898-b8df-5754b55c2be0
dflaven há 13 anos atrás
pai
commit
c086a0f4d7
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      pages/UI.php

+ 4 - 1
pages/UI.php

@@ -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();
 		}