瀏覽代碼

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 13 年之前
父節點
當前提交
c086a0f4d7
共有 1 個文件被更改,包括 4 次插入1 次删除
  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();
 		}