@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | $result = restrictedArea($user, 'contact', $id, 'socpeople&societe', '', '', 'rowid', 0); // If we create a contact with no company (shared contacts), no check on write permission |
96 | 96 | |
97 | -$permissiontoadd = $user->hasRight('societe', 'contact', 'creer'); // Used by the include of actions_dellink.inc.php |
|
97 | +$permissiontoadd = $user->hasRight('societe', 'contact', 'creer'); // Used by the include of actions_dellink.inc.php |
|
98 | 98 | |
99 | 99 | |
100 | 100 | /* |
@@ -198,7 +198,7 @@ |
||
198 | 198 | $maxfilesizearray = getMaxFileSizeArray(); |
199 | 199 | $maxmin = $maxfilesizearray['maxmin']; |
200 | 200 | if ($maxmin > 0) { |
201 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
201 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
202 | 202 | } |
203 | 203 | print '<input type="file" class="flat" name="photo" id="photoinput">'; |
204 | 204 | print '</td></tr>'; |
@@ -548,7 +548,7 @@ |
||
548 | 548 | $accountsystem->fetch(getDolGlobalInt('CHARTOFACCOUNTS')); |
549 | 549 | $sql = 'SELECT DISTINCT pcg_type FROM ' . MAIN_DB_PREFIX . 'accounting_account'; |
550 | 550 | $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'"; |
551 | - $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
551 | + $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
552 | 552 | $sql .= ' LIMIT 50000'; // just as a sanity check |
553 | 553 | $resql = $db->query($sql); |
554 | 554 | if ($resql) { |
@@ -337,7 +337,7 @@ |
||
337 | 337 | print '<table class="border centpercent tableforfield">' . "\n"; |
338 | 338 | |
339 | 339 | // Common attributes |
340 | - $keyforbreak = 'date_acquisition'; // We change column just before this field |
|
340 | + $keyforbreak = 'date_acquisition'; // We change column just before this field |
|
341 | 341 | //unset($object->fields['fk_project']); // Hide field already shown in banner |
342 | 342 | //unset($object->fields['fk_soc']); // Hide field already shown in banner |
343 | 343 | include DOL_DOCUMENT_ROOT . '/core/tpl/commonfields_view.tpl.php'; |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | // Default sort order (if not yet defined by previous GETPOST) |
73 | 73 | if (!$sortfield) { |
74 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
74 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
75 | 75 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
76 | 76 | } |
77 | 77 | if (!$sortorder) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'assetlist'; // To manage different context of search |
45 | 45 | $backtopage = GETPOST('backtopage', 'alpha'); // Go back to a dedicated page |
46 | 46 | $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') |
47 | -$mode = GETPOST('mode', 'alpha'); // mode view (kanban or common) |
|
47 | +$mode = GETPOST('mode', 'alpha'); // mode view (kanban or common) |
|
48 | 48 | $id = GETPOSTINT('id'); |
49 | 49 | |
50 | 50 | // Load variable for pagination |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | // Default sort order (if not yet defined by previous GETPOST) |
75 | 75 | if (!$sortfield) { |
76 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
76 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
77 | 77 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
78 | 78 | } |
79 | 79 | if (!$sortorder) { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | // Parameters |
36 | 36 | $action = GETPOST('action', 'aZ09'); |
37 | 37 | $backtopage = GETPOST('backtopage', 'alpha'); |
38 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
38 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
39 | 39 | |
40 | 40 | if (empty($action)) { |
41 | 41 | $action = 'edit'; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | //'gemini' => 'Gemini' |
72 | 72 | ); |
73 | 73 | |
74 | -$item = $formSetup->newItem('AI_API_SERVICE'); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
74 | +$item = $formSetup->newItem('AI_API_SERVICE'); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
75 | 75 | $item->setAsSelect($arrayofia); |
76 | 76 | $item->cssClass = 'minwidth150'; |
77 | 77 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $item->defaultFieldValue = ''; |
82 | 82 | $item->cssClass = 'minwidth500';*/ |
83 | 83 | |
84 | - $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY')->setAsSecureKey(); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
84 | + $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY')->setAsSecureKey(); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
85 | 85 | $item->nameText = $langs->trans("AI_API_KEY") . ' (' . $ialabel . ')'; |
86 | 86 | $item->defaultFieldValue = ''; |
87 | 87 | $item->fieldParams['hideGenerateButton'] = 1; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | // Parameters |
35 | 35 | $action = GETPOST('action', 'aZ09'); |
36 | 36 | $backtopage = GETPOST('backtopage', 'alpha'); |
37 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
37 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
38 | 38 | |
39 | 39 | if (empty($action)) { |
40 | 40 | $action = 'edit'; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $ai = new Ai($db); |
65 | 65 | |
66 | 66 | // Get parameters |
67 | -$function = empty($jsonData['function']) ? 'textgeneration' : $jsonData['function']; // Default value. Can also be 'textgenerationemail', 'textgenerationwebpage', ... |
|
67 | +$function = empty($jsonData['function']) ? 'textgeneration' : $jsonData['function']; // Default value. Can also be 'textgenerationemail', 'textgenerationwebpage', ... |
|
68 | 68 | $instructions = dol_string_nohtmltag($jsonData['instructions'], 1, 'UTF-8'); |
69 | 69 | $format = empty($jsonData['format']) ? '' : $jsonData['format']; |
70 | 70 |