diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php index a784792ae02..34a511aeb77 100644 --- a/htdocs/admin/stock.php +++ b/htdocs/admin/stock.php @@ -40,6 +40,7 @@ if (!$user->admin) { $action = GETPOST('action', 'aZ09'); $value = GETPOST('value', 'alpha'); +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php $label = GETPOST('label', 'alpha'); $scandir = GETPOST('scan_dir', 'alpha'); $type = 'stock'; @@ -48,6 +49,7 @@ $type = 'stock'; /* * Action */ +include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php'; $reg = array();