|
@@ -2468,7 +2468,8 @@ if ($action == 'create') {
|
|
|
// Show object lines
|
|
|
$result = $object->getLinesArray();
|
|
|
|
|
|
- print ' <form name="addproduct" id="addproduct" action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.(($action != 'editline') ? '' : '#line_'.GETPOST('lineid', 'int')).'" method="POST">
|
|
|
+ // Updated by MMI Mathieu Moulin iProspective
|
|
|
+ print ' <form name="addproduct" id="addproduct" action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.(($action != 'editline') ? ($conf->global->MAIN_DOCUMENT_FORM_ADD_PRODUCT_STAY ?'#addproduct' :'') : '#line_'.GETPOST('lineid', 'int')).'" method="POST">
|
|
|
<input type="hidden" name="token" value="' . newToken().'">
|
|
|
<input type="hidden" name="action" value="' . (($action != 'editline') ? 'addline' : 'updateline').'">
|
|
|
<input type="hidden" name="mode" value="">
|