From 4c91788941df954a6f9562593cbcfadcef2a272e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Sun, 3 Aug 2014 22:08:25 +0200 Subject: [PATCH] Fix: Can not set option when using in nojs mode. --- htdocs/admin/agenda_other.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/agenda_other.php b/htdocs/admin/agenda_other.php index 4a9c359f5c1..3748a46f802 100644 --- a/htdocs/admin/agenda_other.php +++ b/htdocs/admin/agenda_other.php @@ -110,11 +110,11 @@ if ($conf->use_javascript_ajax) } else { - if($conf->global->AGENDA_USE_EVENT_TYPE == 0) + if (empty($conf->global->AGENDA_USE_EVENT_TYPE)) { print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_AGENDA_USE_EVENT_TYPE">'.img_picto($langs->trans("Disabled"),'off').'</a>'; } - else if($conf->global->BUSINESS_VISIBLE_TO_ALL_BY_DEFAULT == 1) + else { print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_AGENDA_USE_EVENT_TYPE">'.img_picto($langs->trans("Enabled"),'on').'</a>'; } -- GitLab