Fix: check warehouse on product batch
Only check warehouse on actions 'create' and 'add'
This commit is contained in:
parent
f7d2d0e81f
commit
722fdaa4eb
@ -90,6 +90,8 @@ $hookmanager->initHooks(array('expeditioncard','globalcard'));
|
||||
*/
|
||||
|
||||
$warehousecanbeselectedlater=1;
|
||||
if (($action == 'create') || ($action == 'add'))
|
||||
{
|
||||
if (! empty($conf->productbatch->enabled))
|
||||
{
|
||||
if (! (GETPOST('entrepot_id','int') > 0))
|
||||
@ -100,7 +102,7 @@ if (! empty($conf->productbatch->enabled))
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$parameters=array();
|
||||
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||
|
||||
Loading…
Reference in New Issue
Block a user