diff --git a/htdocs/admin/agenda.php b/htdocs/admin/agenda.php index a3c9a3d3bb4..3b79df6c5eb 100644 --- a/htdocs/admin/agenda.php +++ b/htdocs/admin/agenda.php @@ -202,7 +202,7 @@ if (!empty($triggers)) { print '
| '.$form->textwithpicto($langs->trans("AGENDA_DEFAULT_VIEW"), $htmltex print ' | '."\n"; print ' | '."\n"; $tmplist = array(''=>' ', 'show_list'=>$langs->trans("ViewList"), 'show_month'=>$langs->trans("ViewCal"), 'show_week'=>$langs->trans("ViewWeek"), 'show_day'=>$langs->trans("ViewDay"), 'show_peruser'=>$langs->trans("ViewPerUser")); -print $form->selectarray('AGENDA_DEFAULT_VIEW', $tmplist, $conf->global->AGENDA_DEFAULT_VIEW); +print $form->selectarray('AGENDA_DEFAULT_VIEW', $tmplist, getDolGlobalString('AGENDA_DEFAULT_VIEW')); print ' | '."\n"; // Manual or automatic @@ -395,7 +395,7 @@ print '
| '.$langs->trans("AGENDA_DEFAULT_FILTER_STATUS").' | '."\n"; print ''."\n"; print ' | '."\n"; -$formactions->form_select_status_action('agenda', $conf->global->AGENDA_DEFAULT_FILTER_STATUS, 1, 'AGENDA_DEFAULT_FILTER_STATUS', 1, 2, 'minwidth100'); +$formactions->form_select_status_action('agenda', getDolGlobalString('AGENDA_DEFAULT_FILTER_STATUS'), 1, 'AGENDA_DEFAULT_FILTER_STATUS', 1, 2, 'minwidth100'); print ' |