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