Skip to content
Snippets Groups Projects
Commit 1baf25de authored by Christophe Battarel's avatar Christophe Battarel
Browse files

FIX ISSUE #4506 : make working the PROPAL_CLONE_ON_CREATE_PAGE hidden

constant
parent bd69830c
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,8 @@ if (empty($reshook))
$object->note = GETPOST('note');
$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 {
setEventMessage($langs->trans("ErrorFailedToCopyProposal", GETPOST('copie_propal')), 'errors');
}
......
......@@ -946,6 +946,7 @@ class Propal extends CommonObject
*/
function create_from($user)
{
// i love this function because $this->products is not used in create function...
$this->products=$this->lines;
return $this->create($user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment