mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
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.
SVN:trunk[3567]
This commit is contained in:
@@ -1474,8 +1474,7 @@ EOF
|
|||||||
// Rollback to the previous state... by reloading the object from the database and applying the modifications again
|
// 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 = MetaModel::GetObject(get_class($oObj), $oObj->GetKey());
|
||||||
$oObj->UpdateObjectFromPostedForm('', array_keys($aExpectedAttributes), $sTargetState);
|
$oObj->UpdateObjectFromPostedForm('', array_keys($aExpectedAttributes), $sTargetState);
|
||||||
$aData = $e->getContextData();
|
$sIssues = $e->getMessage();
|
||||||
$sIssues = (array_key_exists('issues', $aData)) ? $aData['issues'] : 'Unknown error...';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user