diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 2e231bbbca4..8e5cdffc7df 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -61,10 +61,10 @@ if (empty($mode) && preg_match('/show_/', $action)) { $disabledefaultvalues = GETPOSTINT('disabledefaultvalues'); $check_holiday = GETPOSTINT('check_holiday'); +$check_birthday = !empty($conf->use_javascript_ajax) ? GETPOSTINT("check_birthday") : 1; $filter = GETPOST("search_filter", 'alpha', 3) ? GETPOST("search_filter", 'alpha', 3) : GETPOST("filter", 'alpha', 3); $filtert = GETPOST("search_filtert", "intcomma", 3) ? GETPOST("search_filtert", "intcomma", 3) : GETPOST("filtert", "intcomma", 3); $usergroup = GETPOST("search_usergroup", "intcomma", 3) ? GETPOST("search_usergroup", "intcomma", 3) : GETPOST("usergroup", "intcomma", 3); -$showbirthday = empty($conf->use_javascript_ajax) ? GETPOSTINT("showbirthday") : 1; $search_categ_cus = GETPOST("search_categ_cus", 'intcomma', 3) ? GETPOST("search_categ_cus", 'intcomma', 3) : 0; // If no choice done on calendar owner (like on left menu link "Agenda"), we filter on current user by default. @@ -238,7 +238,7 @@ $parameters = array( 'maxprint' => $maxprint, 'filter' => $filter, 'filtert' => $filtert, - 'showbirthday' => $showbirthday, + 'showbirthday' => $check_birthday, 'canedit' => $canedit, 'optioncss' => $optioncss, 'actioncode' => $actioncode, @@ -441,8 +441,11 @@ if ($usergroup > 0) { if ($socid > 0) { $param .= "&search_socid=".urlencode((string) ($socid)); } -if ($showbirthday) { - $param .= "&search_showbirthday=1"; +if ($check_birthday) { + $param .= "&check_birthday=1"; +} +if ($check_holiday) { + $param .= "&check_holiday=1"; } if ($pid) { $param .= "&search_projectid=".urlencode((string) ($pid)); @@ -699,7 +702,7 @@ if (!empty($conf->use_javascript_ajax)) { // If javascript on } // Birthdays - $s .= '