Merge remote-tracking branch 'origin/m_code_syntax' into m_code_syntax

This commit is contained in:
Frédéric FRANCE 2021-02-26 18:34:31 +01:00
commit 0411321bbe
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
2 changed files with 2 additions and 2 deletions

View File

@ -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.
}

View File

@ -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, '');