FIX remove socid when cloning a project without third parties
This commit is contained in:
parent
1e12a5884e
commit
dc976ce2ec
1 changed files with 1 additions and 3 deletions
|
|
@ -1729,9 +1729,7 @@ class Project extends CommonObject
|
|||
// Load source object
|
||||
$clone_project->fetch($fromid);
|
||||
$clone_project->fetch_optionals();
|
||||
if ($newthirdpartyid > 0) {
|
||||
$clone_project->socid = $newthirdpartyid;
|
||||
}
|
||||
$clone_project->socid = ($newthirdpartyid > 0 ? $newthirdpartyid : 0);
|
||||
$clone_project->fetch_thirdparty();
|
||||
|
||||
$orign_dt_start = $clone_project->date_start;
|
||||
|
|
|
|||
Loading…
Reference in a new issue