From 94e76ab91ff5725d316999af1b14616cedfe70e6 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sun, 28 Sep 2025 14:38:24 +0200 Subject: [PATCH 1/6] css --- htdocs/core/tpl/admin_extrafields_add.tpl.php | 2 +- htdocs/core/tpl/admin_extrafields_edit.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/tpl/admin_extrafields_add.tpl.php b/htdocs/core/tpl/admin_extrafields_add.tpl.php index 97eb229fd60..47ca36254b5 100644 --- a/htdocs/core/tpl/admin_extrafields_add.tpl.php +++ b/htdocs/core/tpl/admin_extrafields_add.tpl.php @@ -201,7 +201,7 @@ print $formadmin->selectTypeOfFields('type', GETPOST('type', 'alpha'));
- + textwithpicto('', $langs->trans("ExtrafieldParamHelpselect"), 1, 'info', '', 0, 2, 'helpvalue1')?> textwithpicto('', $langs->trans("ExtrafieldParamHelpsellist").'
'.$langs->trans("ExtrafieldParamHelpsellistb").'
'.$langs->trans("ExtrafieldParamHelpsellistc").'
'.$langs->trans("ExtrafieldParamHelpsellistd").(getDolGlobalInt('MAIN_FEATUREES_LEVEL') > 0 ? '
'.$langs->trans("ExtrafieldParamHelpsellist2") : ''), 1, 'info', '', 0, 2, 'helpvalue2')?>
diff --git a/htdocs/core/tpl/admin_extrafields_edit.tpl.php b/htdocs/core/tpl/admin_extrafields_edit.tpl.php index 88049c436a7..f29d14b0bfb 100644 --- a/htdocs/core/tpl/admin_extrafields_edit.tpl.php +++ b/htdocs/core/tpl/admin_extrafields_edit.tpl.php @@ -263,7 +263,7 @@ if (in_array($type, array_keys($typewecanchangeinto))) {
- + textwithpicto('', $langs->trans("ExtrafieldParamHelpselect"), 1, 'info', '', 0, 2, 'helpvalue1')?> textwithpicto('', $langs->trans("ExtrafieldParamHelpsellist").'
'.$langs->trans("ExtrafieldParamHelpsellistb").'
'.$langs->trans("ExtrafieldParamHelpsellistc").'
'.$langs->trans("ExtrafieldParamHelpsellistd").(getDolGlobalInt('MAIN_FEATUREES_LEVEL') > 0 ? '
'.$langs->trans("ExtrafieldParamHelpsellist2") : ''), 1, 'info', '', 0, 2, 'helpvalue2')?>
From 752e06f5fcd6175edbeda130302b54836fab1781 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sun, 28 Sep 2025 15:20:46 +0200 Subject: [PATCH 2/6] FIX #35520 FIX #35522 --- htdocs/core/class/extrafields.class.php | 21 +++++++++++++------ htdocs/core/db/DoliDB.class.php | 17 +++++++++++++-- .../tpl/extrafields_list_search_input.tpl.php | 11 +++++++--- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 8510bd5dd52..03984db4e5e 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1111,14 +1111,14 @@ class ExtraFields * Code very similar with showInputField of common object * * @param string $key Key of attribute - * @param string|array{start:int,end:int} $value Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value); for dates in filter mode, a range array('start'=>, 'end'=>) should be provided + * @param string|array{start:int,end:int} $value Preselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value); for dates in filter mode, a range array('start'=>, 'end'=>) should be provided * @param string $moreparam To add more parameters on html input tag * @param string $keysuffix Suffix string to add after name and id of field (can be used to avoid duplicate names) * @param string $keyprefix Prefix string to add before name and id of field (can be used to avoid duplicate names) * @param string $morecss More css (to defined size of field. Old behaviour: may also be a numeric) * @param int|CommonObject $object Current object or object ID. Preferably, pass the object itself. * @param string $extrafieldsobjectkey The key to use to store retrieved data (commonly $object->table_element) - * @param int $mode 1=Used for search filters + * @param int $mode 1=Used for search filters * @return string */ public function showInputField($key, $value, $moreparam = '', $keysuffix = '', $keyprefix = '', $morecss = '', $object = 0, $extrafieldsobjectkey = '', $mode = 0) @@ -1430,6 +1430,7 @@ class ExtraFields } } if (!getDolGlobalString('MAIN_EXTRAFIELDS_ENABLE_NEW_SELECT2')) { + //$out .= ''; $out .= '