Skip to content
Snippets Groups Projects
Commit 004285c6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4412 from atm-ph/fix_3.8_clone_event

FIX can't clone event
parents 93ed7c09 9b682e09
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,20 @@ class ActionComm extends CommonObject
$this->id=0;
if (!is_object($fuser))
{
if ($fuser > 0)
{
$u = new User($db);
$u->fetch($fuser);
$fuser = $u;
}
else
{
$fuser = $user;
}
}
// Create clone
$result=$this->add($fuser);
if ($result < 0) $error++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment