From 9fb11cd13b3453a64084042c627f834433c83e1a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 3 Aug 2014 23:20:32 +0200 Subject: [PATCH] Fix: Action created by triggers does not saved owner of action. --- .../triggers/interface_50_modAgenda_ActionsAuto.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php index 6ab80b6ad88..8f884ee0f7b 100644 --- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php +++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php @@ -380,7 +380,7 @@ class InterfaceActionsAuto $langs->load("other"); $langs->load("sendings"); $langs->load("agenda"); - + $object->actiontypecode='AC_OTH_AUTO'; if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("ShippingValidated",$object->ref); if (empty($object->actionmsg)) @@ -388,7 +388,7 @@ class InterfaceActionsAuto $object->actionmsg=$langs->transnoentities("ShippingValidated",$object->ref); $object->actionmsg.="\n".$langs->transnoentities("Author").': '.$user->login; } - + // Parameters $object->sendtoid defined by caller //$object->sendtoid=0; $ok=1; @@ -641,8 +641,8 @@ class InterfaceActionsAuto $actioncomm->contact = $contactforaction; $actioncomm->societe = $societeforaction; $actioncomm->author = $user; // User saving action - //$actioncomm->usertodo = $user; // User affected to action - $actioncomm->userdone = $user; // User doing action + $actioncomm->usertodo = $user; // User action is assigned to (owner of action) + $actioncomm->userdone = $user; // User doing action (deprecated, not used anymore) $actioncomm->fk_element = $object->id; $actioncomm->elementtype = $object->element;