Skip to content

Commit

Permalink
Merge branch 'ILIAS-eLearning:release_8' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
eozkeskin authored Apr 22, 2024
2 parents dd9bae6 + ae7b414 commit 6d45776
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Modules/Portfolio/Page/class.ilPortfolioPageGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ilPortfolioPageGUI extends ilPageObjectGUI
protected array $additional = array();
protected array $export_material = array("js" => array(), "images" => array(), "files" => array());
protected static int $initialized = 0;
protected static bool $calender_initialized = false;
protected int $requested_ppage;

public function __construct(
Expand Down Expand Up @@ -640,7 +641,14 @@ protected function renderConsultationHours(
$a_group_ids = null;
}
ilCalendarCategories::_getInstance()->setCHUserId($user_id);
ilCalendarCategories::_getInstance()->initialize(ilCalendarCategories::MODE_PORTFOLIO_CONSULTATION, 0, true);
if (!self::$calender_initialized) {
ilCalendarCategories::_getInstance()->initialize(
ilCalendarCategories::MODE_PORTFOLIO_CONSULTATION,
0,
true
);
self::$calender_initialized = true;
}

$seed = $this->port_request->getCalendarSeed();
if ($seed === "") {
Expand Down

0 comments on commit 6d45776

Please sign in to comment.