From 65913cdd150a42cac782c4b3e7998b93762e9181 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Jun 2022 12:51:40 +0200 Subject: [PATCH] Fix list of event empty. --- htdocs/comm/action/class/actioncomm.class.php | 3 +++ htdocs/comm/action/list.php | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index a406bb56463..48abc53a166 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -389,6 +389,9 @@ class ActionComm extends CommonObject const EVENT_FINISHED = 100; + public $fields = array(); + + /** * Constructor * diff --git a/htdocs/comm/action/list.php b/htdocs/comm/action/list.php index 34dd94664e7..f0a7e1febf8 100644 --- a/htdocs/comm/action/list.php +++ b/htdocs/comm/action/list.php @@ -642,7 +642,6 @@ $s = $newtitle; // Calendars from hooks $parameters = array(); -$object = null; $reshook = $hookmanager->executeHooks('addCalendarChoice', $parameters, $object, $action); if (empty($reshook)) { $s .= $hookmanager->resPrint; @@ -687,7 +686,6 @@ $viewmode .= ''; // Add more views from hooks $parameters = array(); -$object = null; $reshook = $hookmanager->executeHooks('addCalendarView', $parameters, $object, $action); if (empty($reshook)) { $viewmode .= $hookmanager->resPrint;