Fix: When validation and approval where done in same step, label of
action used always label for validation.
This commit is contained in:
parent
3bdd342df1
commit
d9b3069813
@ -719,6 +719,9 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|||||||
$actioncomm->elementtype = $object->element;
|
$actioncomm->elementtype = $object->element;
|
||||||
|
|
||||||
$ret=$actioncomm->add($user); // User qui saisit l'action
|
$ret=$actioncomm->add($user); // User qui saisit l'action
|
||||||
|
|
||||||
|
unset($object->actionmsg); unset($object->actionmsg2); unset($object->actiontypecode); // When several action are called on same object, we must be sure to not reuse vallue of first action.
|
||||||
|
|
||||||
if ($ret > 0)
|
if ($ret > 0)
|
||||||
{
|
{
|
||||||
$_SESSION['LAST_ACTION_CREATED'] = $ret;
|
$_SESSION['LAST_ACTION_CREATED'] = $ret;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user