From d0c86e6c9dd059a4705ca95d296c663a7ceab622 Mon Sep 17 00:00:00 2001 From: Stefan Meyer Date: Fri, 7 Jun 2024 10:47:18 +0200 Subject: [PATCH] Merge pull request #7580 from schmitz-ilias/bt-26706-2 Calendar: set correct category mode when ref id is set (26706) --- Services/Calendar/classes/class.ilCalendarPresentationGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/Calendar/classes/class.ilCalendarPresentationGUI.php b/Services/Calendar/classes/class.ilCalendarPresentationGUI.php index ecb318c0893e..531b287a229e 100644 --- a/Services/Calendar/classes/class.ilCalendarPresentationGUI.php +++ b/Services/Calendar/classes/class.ilCalendarPresentationGUI.php @@ -106,7 +106,7 @@ public function __construct($a_ref_id = 0) $this->initCalendarView(); $cats = ilCalendarCategories::_getInstance($this->user->getId()); - if ($this->category_id > 0) { // single calendar view + if ($this->category_id > 0 && $this->ref_id <= 0) { // single calendar view // ensure activation of this category $vis = ilCalendarVisibility::_getInstanceByUserId($this->user->getId(), $a_ref_id); $vis->forceVisibility($this->category_id);