ProcessMaker-BE "Estandarizando mensajes de error"
- Estandarizando mensajes de error
This commit is contained in:
@@ -74,11 +74,11 @@ class CaseTrackerObject
|
||||
}
|
||||
|
||||
if (!isset($arrayData["CTO_TYPE_OBJ"])) {
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_TYPE_OBJ")), "The \"{0}\" attribute is not defined")));
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_TYPE_OBJ")), "Undefined value for \"{0}\", it is required.")));
|
||||
}
|
||||
|
||||
if (!isset($arrayData["CTO_UID_OBJ"])) {
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_UID_OBJ")), "The \"{0}\" attribute is not defined")));
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_UID_OBJ")), "Undefined value for \"{0}\", it is required.")));
|
||||
}
|
||||
|
||||
$step = new \ProcessMaker\BusinessModel\Step();
|
||||
@@ -148,11 +148,11 @@ class CaseTrackerObject
|
||||
}
|
||||
|
||||
if (isset($arrayData["CTO_TYPE_OBJ"]) && !isset($arrayData["CTO_UID_OBJ"])) {
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_UID_OBJ")), "The \"{0}\" attribute is not defined")));
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_UID_OBJ")), "Undefined value for \"{0}\", it is required.")));
|
||||
}
|
||||
|
||||
if (!isset($arrayData["CTO_TYPE_OBJ"]) && isset($arrayData["CTO_UID_OBJ"])) {
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_TYPE_OBJ")), "The \"{0}\" attribute is not defined")));
|
||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_TYPE_OBJ")), "Undefined value for \"{0}\", it is required.")));
|
||||
}
|
||||
|
||||
if (isset($arrayData["CTO_TYPE_OBJ"]) && isset($arrayData["CTO_UID_OBJ"])) {
|
||||
@@ -324,7 +324,8 @@ class CaseTrackerObject
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function moveCaseTrackerObject($cto_uid, $pro_uid, $cto_pos) {
|
||||
public function moveCaseTrackerObject($cto_uid, $pro_uid, $cto_pos)
|
||||
{
|
||||
$aCaseTrackerObject = CaseTracker::getCaseTrackerObjects($pro_uid);
|
||||
|
||||
foreach ($aCaseTrackerObject as $dataCaseTracker) {
|
||||
|
||||
Reference in New Issue
Block a user