浏览代码

Improved the symptom when an error occurs in the "apply stimulus form". The symptom used to be: Object could not be written; unknown error. Now it will give the error message (e.g. Missing query arguments) so as to help in determining what's going on.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3567 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 年之前
父节点
当前提交
f8c00e5065
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      pages/UI.php

+ 1 - 2
pages/UI.php

@@ -1474,8 +1474,7 @@ EOF
 							// Rollback to the previous state... by reloading the object from the database and applying the modifications again
 							$oObj = MetaModel::GetObject(get_class($oObj), $oObj->GetKey());
 							$oObj->UpdateObjectFromPostedForm('', array_keys($aExpectedAttributes), $sTargetState);
-							$aData = $e->getContextData();
-							$sIssues = (array_key_exists('issues', $aData)) ? $aData['issues'] : 'Unknown error...';
+							$sIssues = $e->getMessage();
 						}
 					}
 					else