PM-2139 0017111: Change error message when deleting variable. Use DynaForm name, not its UID.
Causa : Definida asi en su construccion. Solucion : Se definio nuevos parametros de retorno cuando el endpoint hacia la llamada.
This commit is contained in:
@@ -222,7 +222,8 @@ class Variable
|
||||
$pmDynaform = new \pmDynaform();
|
||||
$isUsed = $pmDynaform->isUsed($processUid, $variable);
|
||||
if ($isUsed !== false) {
|
||||
throw new \Exception(\G::LoadTranslation("ID_VARIABLE_IN_USE", array($variableUid, $isUsed)));
|
||||
$titleDynaform=$pmDynaform->getDynaformTitle($isUsed);
|
||||
throw new \Exception(\G::LoadTranslation("ID_VARIABLE_IN_USE", array($titleDynaform)));
|
||||
}
|
||||
//Delete
|
||||
$criteria = new \Criteria("workflow");
|
||||
|
||||
Reference in New Issue
Block a user