Merge remote-tracking branch 'origin/m_code_syntax' into m_code_syntax
This commit is contained in:
commit
0411321bbe
@ -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.
|
||||
}
|
||||
|
||||
|
||||
@ -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, '');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user