Skip to content

Commit

Permalink
Merge pull request ILIAS-eLearning#7580 from schmitz-ilias/bt-26706-2
Browse files Browse the repository at this point in the history
Calendar: set correct category mode when ref id is set (26706)
  • Loading branch information
smeyer-ilias committed Jun 7, 2024
1 parent 5792009 commit d0c86e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d0c86e6

Please sign in to comment.