Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
c086a0f4d7
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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();
 		}