Skip to content

Commit

Permalink
Merge pull request #4412 from atm-ph/fix_3.8_clone_event
Browse files Browse the repository at this point in the history
FIX can't clone event
  • Loading branch information
eldy committed Jan 13, 2016
2 parents 93ed7c0 + 9b682e0 commit 004285c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions htdocs/comm/action/class/actioncomm.class.php
Expand Up @@ -418,6 +418,20 @@ function createFromClone($fuser, $socid)

$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++;
Expand Down

0 comments on commit 004285c

Please sign in to comment.