Merge pull request #22579 from altairis-noe/mouvementstock_extrafields_16
FIX extrafields_add tpl for stock movement
This commit is contained in:
commit
5629286263
@ -38,13 +38,13 @@ if (empty($conf) || !is_object($conf)) {
|
||||
// Other attributes
|
||||
if (!isset($parameters)) $parameters = array();
|
||||
|
||||
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $movement, $action); // Note that $action and $object may have been modified by hook
|
||||
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
if (empty($reshook)) {
|
||||
$params = array();
|
||||
if (isset($tpl_context)) $params['tpl_context'] = $tpl_context;
|
||||
$params['cols'] = $parameters['colspanvalue'];
|
||||
print $movement->showOptionals($extrafields, 'create', $params);
|
||||
print $object->showOptionals($extrafields, 'create', $params);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user