Debug v22

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-02-04 23:58:14 +01:00
parent c4f52d0484
commit efeeab4108
4 changed files with 7 additions and 3 deletions

View file

@ -96,11 +96,15 @@ if (!isset($mode) || $mode != 'noajax') { // For ajax call
}
} else {
// When no an ajax call (include from other file)
/*
* @var string $module
*/
'
@phan-var-force int $section
@phan-var-force string $module
@phan-var-force string $showonrightsize
';
$rootdirfordoc = $conf->ecm->dir_output;
$ecmdir = new EcmDirectory($db);

View file

@ -9449,7 +9449,7 @@ class Form
* @param string $htmlname Name of HTML field
* @param array<string,array{label:string,checked:string,enabled?:string,type?:string,langfile?:string,position?:int,help?:string}> $array Array with array of fields we could show. This array may be modified according to setup of user.
* @param string $varpage Id of context for page. Can be set by caller with $varpage=(empty($contextpage)?$_SERVER["PHP_SELF"]:$contextpage);
* @param string $pos Position colon on liste value 'left' or '' (meaning 'right').
* @param string $pos Position of the colon in list: 'left' or '' (meaning 'right').
* @return string HTML multiselect string
* @see selectarray()
*/

View file

@ -606,7 +606,7 @@ if (!empty($moreforfilter)) {
}
$varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, $conf->main_checkbox_left_column); // This also change content of $arrayfields with user setup
$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, $conf->main_checkbox_left_column ? 'left' : ''); // This also change content of $arrayfields with user setup
$selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');

View file

@ -355,7 +355,7 @@ if (!empty($moreforfilter)) {
}
$varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, $conf->main_checkbox_left_column); // This also change content of $arrayfields with user setup
$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, $conf->main_checkbox_left_column ? 'left' : ''); // This also change content of $arrayfields with user setup
$selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');