diff --git a/htdocs/admin/agenda.php b/htdocs/admin/agenda.php
index 5c06109219b..16608a5fae2 100644
--- a/htdocs/admin/agenda.php
+++ b/htdocs/admin/agenda.php
@@ -169,8 +169,9 @@ if (! empty($triggers))
//print 'module='.$module.'
';
if (! empty($conf->$module->enabled))
{
- // Discard special case.
+ // Discard special case: If option FICHINTER_CLASSIFY_BILLED is not set, we discard both trigger FICHINTER_CLASSIFY_BILLED and FICHINTER_CLASSIFY_UNBILLED
if ($trigger['code'] == 'FICHINTER_CLASSIFY_BILLED' && empty($conf->global->FICHINTER_CLASSIFY_BILLED)) continue;
+ if ($trigger['code'] == 'FICHINTER_CLASSIFY_UNBILLED' && empty($conf->global->FICHINTER_CLASSIFY_BILLED)) continue;
$var=!$var;
print '
';
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index e5472727aa2..c414d3409d6 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -341,11 +341,14 @@ dol_fiche_head($head, $tabactive, $langs->trans('Agenda'), 0, 'action');
print_actions_filter($form,$canedit,$status,$year,$month,$day,$showbirthday,0,$filtert,0,$pid,$socid,$action,$listofextcals,$actioncode,$usergroup);
dol_fiche_end();
+
+// Define the legend/list of calendard to show
+$s=''; $link='';
+
$showextcals=$listofextcals;
-// Legend
-if (! empty($conf->use_javascript_ajax))
+
+if (! empty($conf->use_javascript_ajax)) // If javascript on
{
- $s='';
$s.='' . "\n";
+ // Local calendar
$s.=' ' . $langs->trans("LocalAgenda").'
';
+
+ // External calendars
if (is_array($showextcals) && count($showextcals) > 0)
{
$s.='