Fix phan
This commit is contained in:
parent
150e162022
commit
8d279a535c
3 changed files with 7 additions and 7 deletions
|
|
@ -91,7 +91,7 @@ if ($search_status == '' && !GETPOSTISSET('search_status')) {
|
|||
$search_status = ((!getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS') || $disabledefaultvalues) ? '' : $conf->global->AGENDA_DEFAULT_FILTER_STATUS);
|
||||
}
|
||||
if (empty($mode) && !GETPOSTISSET('mode')) {
|
||||
$mode = getDolGlobalString('AGENDA_DEFAULT_VIEW', 'list');
|
||||
$mode = getDolGlobalString('AGENDA_DEFAULT_VIEW', 'show_list');
|
||||
}
|
||||
|
||||
$filter = GETPOST("search_filter", 'alpha', 3) ? GETPOST("search_filter", 'alpha', 3) : GETPOST("filter", 'alpha', 3);
|
||||
|
|
@ -191,7 +191,7 @@ if ($user->socid && $socid) {
|
|||
*/
|
||||
|
||||
if (GETPOST('cancel', 'alpha')) {
|
||||
$mode = 'list';
|
||||
$mode = 'show_list';
|
||||
$massaction = '';
|
||||
}
|
||||
|
||||
|
|
@ -685,7 +685,7 @@ $viewday = is_object($object) ? dol_print_date($object->datep, '%d') : '';
|
|||
|
||||
$viewmode = '<div class="navmode inline-block">';
|
||||
|
||||
$viewmode .= '<a class="btnTitle'.($mode == 'list' ? ' btnTitleSelected' : '').' btnTitleSelected reposition" href="'.DOL_URL_ROOT.'/comm/action/list.php?mode=show_list&restore_lastsearch_values=1'.$paramnoactionodate.'">';
|
||||
$viewmode .= '<a class="btnTitle'.(($mode == 'list' || $mode == 'show_list') ? ' btnTitleSelected' : '').' btnTitleSelected reposition" href="'.DOL_URL_ROOT.'/comm/action/list.php?mode=show_list&restore_lastsearch_values=1'.$paramnoactionodate.'">';
|
||||
//$viewmode .= '<span class="fa paddingleft imgforviewmode valignmiddle btnTitle-icon">';
|
||||
$viewmode .= img_picto($langs->trans("List"), 'object_calendarlist', 'class="imgforviewmode pictoactionview block"');
|
||||
//$viewmode .= '</span>';
|
||||
|
|
|
|||
|
|
@ -146,14 +146,14 @@ if ($end_h <= $begin_h) {
|
|||
}
|
||||
|
||||
// working days
|
||||
$tmp = !getDolGlobalString('MAIN_DEFAULT_WORKING_DAYS') ? '1-5' : $conf->global->MAIN_DEFAULT_WORKING_DAYS;
|
||||
$tmp = getDolGlobalString('MAIN_DEFAULT_WORKING_DAYS', '1-5');
|
||||
$tmp = str_replace(' ', '', $tmp); // FIX 7533
|
||||
$tmparray = explode('-', $tmp);
|
||||
$begin_d = 1;
|
||||
$end_d = 53;
|
||||
|
||||
if ($status == '' && !GETPOSTISSET('search_status')) {
|
||||
$status = ((!getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS') || $disabledefaultvalues) ? '' : $conf->global->AGENDA_DEFAULT_FILTER_STATUS);
|
||||
$status = ((!getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS') || $disabledefaultvalues) ? '' : getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS'));
|
||||
}
|
||||
if (empty($mode) && !GETPOSTISSET('mode')) {
|
||||
$mode = getDolGlobalString('AGENDA_DEFAULT_VIEW', 'show_pertype');
|
||||
|
|
@ -313,7 +313,7 @@ if ($type) {
|
|||
$param .= "&search_type=".urlencode($type);
|
||||
}
|
||||
if ($mode != 'show_pertype') {
|
||||
$param .= '&mode='.urlencode($mode);
|
||||
$param .= '&mode='.urlencode((string) $mode);
|
||||
}
|
||||
if ($begin_h != '') {
|
||||
$param .= '&begin_h='.urlencode($begin_h);
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ if ($type) {
|
|||
$param .= "&search_type=".urlencode($type);
|
||||
}
|
||||
if ($mode != 'show_peruser') {
|
||||
$param .= '&mode='.urlencode($mode);
|
||||
$param .= '&mode='.urlencode((string) $mode);
|
||||
}
|
||||
if ($begin_h != '') {
|
||||
$param .= '&begin_h='.((int) $begin_h);
|
||||
|
|
|
|||
Loading…
Reference in a new issue