diff --git a/htdocs/modulebuilder/template/class/actions_mymodule.class.php b/htdocs/modulebuilder/template/class/actions_mymodule.class.php index f29f6eeb45a..8559411a3d4 100644 --- a/htdocs/modulebuilder/template/class/actions_mymodule.class.php +++ b/htdocs/modulebuilder/template/class/actions_mymodule.class.php @@ -100,7 +100,7 @@ class ActionsMyModule /* print_r($parameters); print_r($object); echo "action: " . $action; */ if (in_array($parameters['currentcontext'], array('somecontext1', 'somecontext2'))) { // do something only for the context 'somecontext1' or 'somecontext2' - // Do what you want here... + // Do what you want here... // You can for example call global vars like $fieldstosearchall to overwrite them, or update database depending on $action and $_POST values. } diff --git a/htdocs/mrp/mo_list.php b/htdocs/mrp/mo_list.php index 972fb2cb770..ed78c46f133 100644 --- a/htdocs/mrp/mo_list.php +++ b/htdocs/mrp/mo_list.php @@ -88,7 +88,7 @@ if (empty($conf->mrp->enabled)) { } $socid = 0; if ($user->socid > 0) { // Protection if external user -//$socid = $user->socid; + //$socid = $user->socid; accessforbidden(); } //$result = restrictedArea($user, 'mrp', $id, '');