Fixed: [ bug #1578 ] Cannot create proposal by copy of another one
This commit is contained in:
parent
84729a6aa3
commit
f7206c2a52
1 changed files with 2 additions and 2 deletions
|
|
@ -651,7 +651,7 @@ class Propal extends CommonObject
|
|||
* @param int $notrigger 1=Does not execute triggers, 0= execuete triggers
|
||||
* @return int <0 if KO, >=0 if OK
|
||||
*/
|
||||
function create($user='', $notrigger=0)
|
||||
function create($user, $notrigger=0)
|
||||
{
|
||||
global $langs,$conf,$mysoc,$hookmanager;
|
||||
$error=0;
|
||||
|
|
@ -919,7 +919,7 @@ class Propal extends CommonObject
|
|||
{
|
||||
$this->products=$this->lines;
|
||||
|
||||
return $this->create();
|
||||
return $this->create($user);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue