@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $search_date_endday = GETPOSTINT('search_date_endday'); |
86 | 86 | $search_date_endmonth = GETPOSTINT('search_date_endmonth'); |
87 | 87 | $search_date_endyear = GETPOSTINT('search_date_endyear'); |
88 | -$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
88 | +$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
89 | 89 | $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear); |
90 | 90 | $searchCategoryCustomerOperator = 0; |
91 | 91 | if (GETPOSTISSET('formfilteraction')) { |
@@ -98,20 +98,20 @@ discard block |
||
98 | 98 | $search_date_creation_startmonth = GETPOSTINT('search_date_creation_startmonth'); |
99 | 99 | $search_date_creation_startyear = GETPOSTINT('search_date_creation_startyear'); |
100 | 100 | $search_date_creation_startday = GETPOSTINT('search_date_creation_startday'); |
101 | -$search_date_creation_start = dol_mktime(0, 0, 0, $search_date_creation_startmonth, $search_date_creation_startday, $search_date_creation_startyear); // Use tzserver |
|
101 | +$search_date_creation_start = dol_mktime(0, 0, 0, $search_date_creation_startmonth, $search_date_creation_startday, $search_date_creation_startyear); // Use tzserver |
|
102 | 102 | $search_date_creation_endmonth = GETPOSTINT('search_date_creation_endmonth'); |
103 | 103 | $search_date_creation_endyear = GETPOSTINT('search_date_creation_endyear'); |
104 | 104 | $search_date_creation_endday = GETPOSTINT('search_date_creation_endday'); |
105 | -$search_date_creation_end = dol_mktime(23, 59, 59, $search_date_creation_endmonth, $search_date_creation_endday, $search_date_creation_endyear); // Use tzserver |
|
105 | +$search_date_creation_end = dol_mktime(23, 59, 59, $search_date_creation_endmonth, $search_date_creation_endday, $search_date_creation_endyear); // Use tzserver |
|
106 | 106 | |
107 | 107 | $search_date_modif_startmonth = GETPOSTINT('search_date_modif_startmonth'); |
108 | 108 | $search_date_modif_startyear = GETPOSTINT('search_date_modif_startyear'); |
109 | 109 | $search_date_modif_startday = GETPOSTINT('search_date_modif_startday'); |
110 | -$search_date_modif_start = dol_mktime(0, 0, 0, $search_date_modif_startmonth, $search_date_modif_startday, $search_date_modif_startyear); // Use tzserver |
|
110 | +$search_date_modif_start = dol_mktime(0, 0, 0, $search_date_modif_startmonth, $search_date_modif_startday, $search_date_modif_startyear); // Use tzserver |
|
111 | 111 | $search_date_modif_endmonth = GETPOSTINT('search_date_modif_endmonth'); |
112 | 112 | $search_date_modif_endyear = GETPOSTINT('search_date_modif_endyear'); |
113 | 113 | $search_date_modif_endday = GETPOSTINT('search_date_modif_endday'); |
114 | -$search_date_modif_end = dol_mktime(23, 59, 59, $search_date_modif_endmonth, $search_date_modif_endday, $search_date_modif_endyear); // Use tzserver |
|
114 | +$search_date_modif_end = dol_mktime(23, 59, 59, $search_date_modif_endmonth, $search_date_modif_endday, $search_date_modif_endyear); // Use tzserver |
|
115 | 115 | |
116 | 116 | // Load variable for pagination |
117 | 117 | $limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit; |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | $object->fields = dol_sort_array($object->fields, 'position'); |
202 | 202 | $arrayfields = dol_sort_array($arrayfields, 'position'); |
203 | -'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
203 | +'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
204 | 204 | |
205 | 205 | if (!$user->hasRight('societe', 'client', 'voir')) { |
206 | 206 | $search_sale = $user->id; |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | $resql = $db->query($sql, 0, 'auto', 1); |
535 | 535 | while ($db->fetch_object($resql)) { |
536 | 536 | if (empty($nbtotalofrecords)) { |
537 | - $nbtotalofrecords = 1; // We can't make +1 because init value is '' |
|
537 | + $nbtotalofrecords = 1; // We can't make +1 because init value is '' |
|
538 | 538 | } else { |
539 | 539 | $nbtotalofrecords++; |
540 | 540 | } |
@@ -986,55 +986,55 @@ discard block |
||
986 | 986 | print '<tr class="liste_titre">'; |
987 | 987 | if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { |
988 | 988 | print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch '); |
989 | - $totalarray['nbfield']++; // For the column action |
|
989 | + $totalarray['nbfield']++; // For the column action |
|
990 | 990 | } |
991 | 991 | if (!empty($arrayfields['c.ref']['checked'])) { |
992 | 992 | print_liste_field_titre($arrayfields['c.ref']['label'], $_SERVER["PHP_SELF"], "c.ref", "", $param, '', $sortfield, $sortorder); |
993 | - $totalarray['nbfield']++; // For the column action |
|
993 | + $totalarray['nbfield']++; // For the column action |
|
994 | 994 | } |
995 | 995 | if (!empty($arrayfields['c.ref_customer']['checked'])) { |
996 | 996 | print_liste_field_titre($arrayfields['c.ref_customer']['label'], $_SERVER["PHP_SELF"], "c.ref_customer", "", $param, '', $sortfield, $sortorder); |
997 | - $totalarray['nbfield']++; // For the column action |
|
997 | + $totalarray['nbfield']++; // For the column action |
|
998 | 998 | } |
999 | 999 | if (!empty($arrayfields['c.ref_supplier']['checked'])) { |
1000 | 1000 | print_liste_field_titre($arrayfields['c.ref_supplier']['label'], $_SERVER["PHP_SELF"], "c.ref_supplier", "", $param, '', $sortfield, $sortorder); |
1001 | - $totalarray['nbfield']++; // For the column action |
|
1001 | + $totalarray['nbfield']++; // For the column action |
|
1002 | 1002 | } |
1003 | 1003 | if (!empty($arrayfields['s.nom']['checked'])) { |
1004 | 1004 | print_liste_field_titre($arrayfields['s.nom']['label'], $_SERVER["PHP_SELF"], "s.nom", "", $param, '', $sortfield, $sortorder); |
1005 | - $totalarray['nbfield']++; // For the column action |
|
1005 | + $totalarray['nbfield']++; // For the column action |
|
1006 | 1006 | } |
1007 | 1007 | if (!empty($arrayfields['s.email']['checked'])) { |
1008 | 1008 | print_liste_field_titre($arrayfields['s.email']['label'], $_SERVER["PHP_SELF"], "s.email", "", $param, '', $sortfield, $sortorder); |
1009 | - $totalarray['nbfield']++; // For the column action |
|
1009 | + $totalarray['nbfield']++; // For the column action |
|
1010 | 1010 | } |
1011 | 1011 | if (!empty($arrayfields['s.town']['checked'])) { |
1012 | 1012 | print_liste_field_titre($arrayfields['s.town']['label'], $_SERVER["PHP_SELF"], 's.town', '', $param, '', $sortfield, $sortorder); |
1013 | - $totalarray['nbfield']++; // For the column action |
|
1013 | + $totalarray['nbfield']++; // For the column action |
|
1014 | 1014 | } |
1015 | 1015 | if (!empty($arrayfields['s.zip']['checked'])) { |
1016 | 1016 | print_liste_field_titre($arrayfields['s.zip']['label'], $_SERVER["PHP_SELF"], 's.zip', '', $param, '', $sortfield, $sortorder); |
1017 | - $totalarray['nbfield']++; // For the column action |
|
1017 | + $totalarray['nbfield']++; // For the column action |
|
1018 | 1018 | } |
1019 | 1019 | if (!empty($arrayfields['state.nom']['checked'])) { |
1020 | 1020 | print_liste_field_titre($arrayfields['state.nom']['label'], $_SERVER["PHP_SELF"], "state.nom", "", $param, '', $sortfield, $sortorder); |
1021 | - $totalarray['nbfield']++; // For the column action |
|
1021 | + $totalarray['nbfield']++; // For the column action |
|
1022 | 1022 | } |
1023 | 1023 | if (!empty($arrayfields['country.code_iso']['checked'])) { |
1024 | 1024 | print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER["PHP_SELF"], "country.code_iso", "", $param, '', $sortfield, $sortorder, 'center '); |
1025 | - $totalarray['nbfield']++; // For the column action |
|
1025 | + $totalarray['nbfield']++; // For the column action |
|
1026 | 1026 | } |
1027 | 1027 | if (!empty($arrayfields['typent.code']['checked'])) { |
1028 | 1028 | print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER["PHP_SELF"], "typent.code", "", $param, '', $sortfield, $sortorder, 'center '); |
1029 | - $totalarray['nbfield']++; // For the column action |
|
1029 | + $totalarray['nbfield']++; // For the column action |
|
1030 | 1030 | } |
1031 | 1031 | if (!empty($arrayfields['sale_representative']['checked'])) { |
1032 | 1032 | print_liste_field_titre($arrayfields['sale_representative']['label'], $_SERVER["PHP_SELF"], "", "", $param, '', $sortfield, $sortorder); |
1033 | - $totalarray['nbfield']++; // For the column action |
|
1033 | + $totalarray['nbfield']++; // For the column action |
|
1034 | 1034 | } |
1035 | 1035 | if (!empty($arrayfields['c.date_contrat']['checked'])) { |
1036 | 1036 | print_liste_field_titre($arrayfields['c.date_contrat']['label'], $_SERVER["PHP_SELF"], "c.date_contrat", "", $param, '', $sortfield, $sortorder, 'center '); |
1037 | - $totalarray['nbfield']++; // For the column action |
|
1037 | + $totalarray['nbfield']++; // For the column action |
|
1038 | 1038 | } |
1039 | 1039 | // Extra fields |
1040 | 1040 | include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_title.tpl.php'; |
@@ -1044,29 +1044,29 @@ discard block |
||
1044 | 1044 | print $hookmanager->resPrint; |
1045 | 1045 | if (!empty($arrayfields['c.datec']['checked'])) { |
1046 | 1046 | print_liste_field_titre($arrayfields['c.datec']['label'], $_SERVER["PHP_SELF"], "c.datec", "", $param, '', $sortfield, $sortorder, 'center nowrap '); |
1047 | - $totalarray['nbfield']++; // For the column action |
|
1047 | + $totalarray['nbfield']++; // For the column action |
|
1048 | 1048 | } |
1049 | 1049 | if (!empty($arrayfields['c.tms']['checked'])) { |
1050 | 1050 | print_liste_field_titre($arrayfields['c.tms']['label'], $_SERVER["PHP_SELF"], "c.tms", "", $param, '', $sortfield, $sortorder, 'center nowrap '); |
1051 | - $totalarray['nbfield']++; // For the column action |
|
1051 | + $totalarray['nbfield']++; // For the column action |
|
1052 | 1052 | } |
1053 | 1053 | if (!empty($arrayfields['lower_planned_end_date']['checked'])) { |
1054 | 1054 | print_liste_field_titre($arrayfields['lower_planned_end_date']['label'], $_SERVER["PHP_SELF"], "lower_planned_end_date", "", $param, '', $sortfield, $sortorder, 'center '); |
1055 | - $totalarray['nbfield']++; // For the column action |
|
1055 | + $totalarray['nbfield']++; // For the column action |
|
1056 | 1056 | } |
1057 | 1057 | if (!empty($arrayfields['status']['checked'])) { |
1058 | 1058 | print_liste_field_titre($staticcontratligne->LibStatut(0, 3, -1, 'class="nochangebackground"'), '', '', '', '', 'width="16"'); |
1059 | - $totalarray['nbfield']++; // For the column action |
|
1059 | + $totalarray['nbfield']++; // For the column action |
|
1060 | 1060 | print_liste_field_titre($staticcontratligne->LibStatut(4, 3, 0, 'class="nochangebackground"'), '', '', '', '', 'width="16"'); |
1061 | - $totalarray['nbfield']++; // For the column action |
|
1061 | + $totalarray['nbfield']++; // For the column action |
|
1062 | 1062 | print_liste_field_titre($staticcontratligne->LibStatut(4, 3, 1, 'class="nochangebackground"'), '', '', '', '', 'width="16"'); |
1063 | - $totalarray['nbfield']++; // For the column action |
|
1063 | + $totalarray['nbfield']++; // For the column action |
|
1064 | 1064 | print_liste_field_titre($staticcontratligne->LibStatut(5, 3, -1, 'class="nochangebackground"'), '', '', '', '', 'width="16"'); |
1065 | - $totalarray['nbfield']++; // For the column action |
|
1065 | + $totalarray['nbfield']++; // For the column action |
|
1066 | 1066 | } |
1067 | 1067 | if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { |
1068 | 1068 | print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch '); |
1069 | - $totalarray['nbfield']++; // For the column action |
|
1069 | + $totalarray['nbfield']++; // For the column action |
|
1070 | 1070 | } |
1071 | 1071 | print "</tr>\n"; |
1072 | 1072 | |
@@ -1356,7 +1356,7 @@ discard block |
||
1356 | 1356 | |
1357 | 1357 | // If no record found |
1358 | 1358 | if ($num == 0) { |
1359 | - $colspan = 4; // Include the 4 columns of status |
|
1359 | + $colspan = 4; // Include the 4 columns of status |
|
1360 | 1360 | foreach ($arrayfields as $key => $val) { |
1361 | 1361 | if (!empty($val['checked'])) { |
1362 | 1362 | $colspan++; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $object = new Contrat($db); |
54 | 54 | $object->fetch($id, $ref); |
55 | 55 | |
56 | -$permissiontoadd = $user->hasRight('contrat', 'creer'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
56 | +$permissiontoadd = $user->hasRight('contrat', 'creer'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
57 | 57 | $permissionnote = $user->hasRight('contrat', 'creer'); // Used by the include of actions_setnotes.inc.php |
58 | 58 | |
59 | 59 | $result = restrictedArea($user, 'contrat', $object->id); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | |
100 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
100 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
101 | 101 | /** |
102 | 102 | * Load an exportable dataset |
103 | 103 | * |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function load_arrays($user, $filter = '') |
109 | 109 | { |
110 | - // phpcs:enable |
|
110 | + // phpcs:enable |
|
111 | 111 | global $langs, $conf, $mysoc; |
112 | 112 | |
113 | 113 | dol_syslog(get_class($this) . "::load_arrays user=" . $user->id . " filter=" . $filter); |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | } |
241 | 241 | |
242 | 242 | |
243 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
243 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
244 | 244 | /** |
245 | 245 | * Build the sql export request. |
246 | 246 | * Arrays this->array_export_xxx are already loaded for required datatoexport |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | */ |
253 | 253 | public function build_sql($indice, $array_selected, $array_filterValue) |
254 | 254 | { |
255 | - // phpcs:enable |
|
255 | + // phpcs:enable |
|
256 | 256 | // Build the sql request |
257 | 257 | $sql = $this->array_export_sql_start[$indice]; |
258 | 258 | $i = 0; |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | return $sql; |
313 | 313 | } |
314 | 314 | |
315 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
315 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
316 | 316 | /** |
317 | 317 | * Build the conditional string from filter the query |
318 | 318 | * |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | */ |
324 | 324 | public function build_filterQuery($TypeField, $NameField, $ValueField) |
325 | 325 | { |
326 | - // phpcs:enable |
|
326 | + // phpcs:enable |
|
327 | 327 | $NameField = sanitizeVal($NameField, 'aZ09'); |
328 | 328 | $szFilterQuery = ''; |
329 | 329 | |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | return $Condition; |
420 | 420 | } |
421 | 421 | |
422 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
422 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
423 | 423 | /** |
424 | 424 | * Build an input field used to filter the query |
425 | 425 | * |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | */ |
431 | 431 | public function build_filterField($TypeField, $NameField, $ValueField) |
432 | 432 | { |
433 | - // phpcs:enable |
|
433 | + // phpcs:enable |
|
434 | 434 | global $conf, $langs, $form; |
435 | 435 | |
436 | 436 | $szFilterField = ''; |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | return $szMsg; |
586 | 586 | } |
587 | 587 | |
588 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
588 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
589 | 589 | /** |
590 | 590 | * Build export file. |
591 | 591 | * File is built into directory $conf->export->dir_temp.'/'.$user->id |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | */ |
603 | 603 | public function build_file($user, $model, $datatoexport, $array_selected, $array_filterValue, $sqlquery = '', $separator = '') |
604 | 604 | { |
605 | - // phpcs:enable |
|
605 | + // phpcs:enable |
|
606 | 606 | global $conf, $langs, $mysoc; |
607 | 607 | |
608 | 608 | $indice = 0; |
@@ -909,7 +909,7 @@ discard block |
||
909 | 909 | } |
910 | 910 | } |
911 | 911 | |
912 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
912 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
913 | 913 | /** |
914 | 914 | * Output list all export models |
915 | 915 | * --TODO Move this into a class htmlxxx.class.php-- |
@@ -918,7 +918,7 @@ discard block |
||
918 | 918 | */ |
919 | 919 | public function list_export_model() |
920 | 920 | { |
921 | - // phpcs:enable |
|
921 | + // phpcs:enable |
|
922 | 922 | global $conf, $langs; |
923 | 923 | |
924 | 924 | $sql = "SELECT em.rowid, em.field, em.label, em.type, em.filter"; |
@@ -376,7 +376,7 @@ |
||
376 | 376 | if (is_numeric($ValueField) && $ValueField > 0) { |
377 | 377 | $szFilterQuery = " " . $NameField . " = " . ((float) $ValueField); |
378 | 378 | } else { |
379 | - $szFilterQuery = " 1=1"; // Test always true |
|
379 | + $szFilterQuery = " 1=1"; // Test always true |
|
380 | 380 | } |
381 | 381 | break; |
382 | 382 | case 'Status': |
@@ -85,7 +85,7 @@ |
||
85 | 85 | $conf->file->main_force_https = empty($dolibarr_main_force_https) ? '' : $dolibarr_main_force_https; // Force https |
86 | 86 | $conf->file->strict_mode = empty($dolibarr_strict_mode) ? '' : $dolibarr_strict_mode; // Force php strict mode (for debug) |
87 | 87 | $conf->file->instance_unique_id = empty($dolibarr_main_instance_unique_id) ? (empty($dolibarr_main_cookie_cryptkey) ? '' : $dolibarr_main_cookie_cryptkey) : $dolibarr_main_instance_unique_id; // Unique id of instance |
88 | -$conf->file->dol_main_url_root = $dolibarr_main_url_root; // Define url inside the config file |
|
88 | +$conf->file->dol_main_url_root = $dolibarr_main_url_root; // Define url inside the config file |
|
89 | 89 | $conf->file->dol_document_root = array('main' => (string) DOL_DOCUMENT_ROOT); // Define array of document root directories ('/home/htdocs') |
90 | 90 | $conf->file->dol_url_root = array('main' => (string) DOL_URL_ROOT); // Define array of url root path ('' or '/dolibarr') |
91 | 91 | if (!empty($dolibarr_main_document_root_alt)) { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | abstract class ModelePDFKnowledgeRecord extends CommonDocGenerator |
40 | 40 | { |
41 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
41 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
42 | 42 | /** |
43 | 43 | * Return list of active generation modules |
44 | 44 | * |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public static function liste_modeles($db, $maxfilenamelength = 0) |
50 | 50 | { |
51 | - // phpcs:enable |
|
51 | + // phpcs:enable |
|
52 | 52 | global $conf; |
53 | 53 | |
54 | 54 | $type = 'knowledgerecord'; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'knowledgerecordcard'; // To manage different context of search |
46 | 46 | $backtopage = GETPOST('backtopage', 'alpha'); |
47 | 47 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); |
48 | -$lineid = GETPOSTINT('lineid'); |
|
48 | +$lineid = GETPOSTINT('lineid'); |
|
49 | 49 | |
50 | 50 | // Initialize technical objects |
51 | 51 | $object = new KnowledgeRecord($db); |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | print '<table class="border centpercent tableforfield">' . "\n"; |
427 | 427 | |
428 | 428 | // Common attributes |
429 | - $keyforbreak = 'fk_c_ticket_category'; // We change column just before this field |
|
429 | + $keyforbreak = 'fk_c_ticket_category'; // We change column just before this field |
|
430 | 430 | //unset($object->fields['fk_project']); // Hide field already shown in banner |
431 | 431 | //unset($object->fields['fk_soc']); // Hide field already shown in banner |
432 | 432 | $object->fields['answer']['enabled'] = 0; |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | |
344 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
344 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
345 | 345 | /** |
346 | 346 | * Clean sensible object datas |
347 | 347 | * |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | */ |
351 | 351 | protected function _cleanObjectDatas($object) |
352 | 352 | { |
353 | - // phpcs:enable |
|
353 | + // phpcs:enable |
|
354 | 354 | $object = parent::_cleanObjectDatas($object); |
355 | 355 | |
356 | 356 | unset($object->rowid); |
@@ -903,7 +903,7 @@ discard block |
||
903 | 903 | return $this->LibStatut($this->status, $mode); |
904 | 904 | } |
905 | 905 | |
906 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
906 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
907 | 907 | /** |
908 | 908 | * Return the status |
909 | 909 | * |
@@ -913,7 +913,7 @@ discard block |
||
913 | 913 | */ |
914 | 914 | public function LibStatut($status, $mode = 0) |
915 | 915 | { |
916 | - // phpcs:enable |
|
916 | + // phpcs:enable |
|
917 | 917 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
918 | 918 | global $langs; |
919 | 919 | //$langs->load("knowledgemanagement"); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | // Default sort order (if not yet defined by previous GETPOST) |
86 | 86 | if (!$sortfield) { |
87 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
87 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
88 | 88 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
89 | 89 | } |
90 | 90 | if (!$sortorder) { |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) { |
616 | 616 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
617 | 617 | } |
618 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
618 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
619 | 619 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
620 | 620 | print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n"; |
621 | 621 | $totalarray['nbfield']++; |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
720 | 720 | print '<td' . ($cssforfield ? ' class="' . $cssforfield . (preg_match('/tdoverflow/', $cssforfield) ? ' classfortooltip' : '') . '"' : ''); |
721 | 721 | if (preg_match('/tdoverflow/', $cssforfield) && !is_numeric($object->$key)) { |
722 | - print ' title="' . dol_escape_htmltag(dol_nl2br($object->$key, 1)) . '"'; // We add dol_nl2br for the question and answer fields |
|
722 | + print ' title="' . dol_escape_htmltag(dol_nl2br($object->$key, 1)) . '"'; // We add dol_nl2br for the question and answer fields |
|
723 | 723 | } |
724 | 724 | print '>'; |
725 | 725 | if ($key == 'status') { |