FIX ISSUE #4506 : make working the PROPAL_CLONE_ON_CREATE_PAGE hidden
constant
This commit is contained in:
parent
bd69830cbd
commit
1baf25de3c
@ -293,7 +293,8 @@ if (empty($reshook))
|
|||||||
$object->note = GETPOST('note');
|
$object->note = GETPOST('note');
|
||||||
$object->statut = 0;
|
$object->statut = 0;
|
||||||
|
|
||||||
$id = $object->create_from($user);
|
// the create is done below and further more the existing create_from function is quite hilarating
|
||||||
|
//$id = $object->create_from($user);
|
||||||
} else {
|
} else {
|
||||||
setEventMessage($langs->trans("ErrorFailedToCopyProposal", GETPOST('copie_propal')), 'errors');
|
setEventMessage($langs->trans("ErrorFailedToCopyProposal", GETPOST('copie_propal')), 'errors');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -946,6 +946,7 @@ class Propal extends CommonObject
|
|||||||
*/
|
*/
|
||||||
function create_from($user)
|
function create_from($user)
|
||||||
{
|
{
|
||||||
|
// i love this function because $this->products is not used in create function...
|
||||||
$this->products=$this->lines;
|
$this->products=$this->lines;
|
||||||
|
|
||||||
return $this->create($user);
|
return $this->create($user);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user