@@ -69,7 +69,7 @@ |
||
| 69 | 69 | /* |
| 70 | 70 | * Actions |
| 71 | 71 | */ |
| 72 | -$parameters = array('id' => $id, 'label' => $label, 'confirm' => $confirm, 'type' => $type, 'uploaddir' => $upload_dir, 'sendfile' => (GETPOST("sendit") ? true : false)); |
|
| 72 | +$parameters = array('id' => $id, 'label' => $label, 'confirm' => $confirm, 'type' => $type, 'uploaddir' => $upload_dir, 'sendfile' => (GETPOST("sendit") ? true : false)); |
|
| 73 | 73 | // Note that $action and $object may be modified by some hooks |
| 74 | 74 | $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); |
| 75 | 75 | if ($reshook < 0) { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $result = restrictedArea($user, 'commande', $id, ''); |
| 52 | 52 | $hookmanager->initHooks(array('ordercontactcard', 'globalcard')); |
| 53 | 53 | |
| 54 | -$usercancreate = $user->hasRight("commande", "creer"); |
|
| 54 | +$usercancreate = $user->hasRight("commande", "creer"); |
|
| 55 | 55 | |
| 56 | 56 | $object = new Commande($db); |
| 57 | 57 | |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | $object = new Commande($db); |
| 75 | 75 | |
| 76 | -$usercancreate = $user->hasRight("commande", "creer"); |
|
| 76 | +$usercancreate = $user->hasRight("commande", "creer"); |
|
| 77 | 77 | $permissiontoadd = $usercancreate; |
| 78 | 78 | |
| 79 | 79 | // Security check |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | $result = restrictedArea($user, 'commande', $id, ''); |
| 54 | 54 | |
| 55 | -$usercancreate = $user->hasRight("commande", "creer"); |
|
| 55 | +$usercancreate = $user->hasRight("commande", "creer"); |
|
| 56 | 56 | |
| 57 | 57 | $permissionnote = $user->hasRight('commande', 'creer'); // Used by the include of actions_setnotes.inc.php |
| 58 | 58 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // File generated to link to the master file - DO NOT MODIFY - It is just an include |
| 4 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
| 5 | - if (! defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
| 4 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
| 5 | + if (!defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
| 6 | 6 | require_once '/var/www/html/dolibarr_dev/htdocs/master.inc.php'; |
| 7 | 7 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // File generated to link to the master file - DO NOT MODIFY - It is just an include |
| 4 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
| 5 | - if (! defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
| 4 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
| 5 | + if (!defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
| 6 | 6 | require_once '/home/ldestailleur/git/dolibarr_dev/htdocs/master.inc.php'; |
| 7 | 7 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | $action = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view'; // The action 'add', 'create', 'edit', 'update', 'view', ... |
| 42 | 42 | $massaction = GETPOST('massaction', 'alpha'); // The bulk action (combo box choice into lists) |
| 43 | -$mode = GETPOST('mode', 'alpha'); |
|
| 43 | +$mode = GETPOST('mode', 'alpha'); |
|
| 44 | 44 | $show_files = GETPOSTINT('show_files'); // Show files area generated by bulk actions ? |
| 45 | 45 | $confirm = GETPOST('confirm', 'alpha'); // Result of a confirmation |
| 46 | 46 | $cancel = GETPOST('cancel', 'alpha'); // We click on a Cancel button |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | // Get parameters |
| 35 | 35 | $id = GETPOSTINT('id'); |
| 36 | -$ref = GETPOST('ref', 'alpha'); |
|
| 36 | +$ref = GETPOST('ref', 'alpha'); |
|
| 37 | 37 | $action = GETPOST('action', 'aZ09'); |
| 38 | 38 | |
| 39 | 39 | // Initialize technical objects |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context |
| 90 | 90 | $hookmanager->initHooks(array('agendacontract', 'globalcard')); |
| 91 | 91 | |
| 92 | -$permissiontoadd = $user->hasRight('contrat', 'creer'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
| 92 | +$permissiontoadd = $user->hasRight('contrat', 'creer'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
| 93 | 93 | |
| 94 | 94 | $result = restrictedArea($user, 'contrat', $object->id); |
| 95 | 95 | |