Skip to content
GitLab
Explore
Sign in
ilias-core
ILIAS
Compare revisions
188c039914c8e96ebca896db34fb5e2b50604358 to 61ee389fd670e90a07f64efcd1a10ff468dc5a12
Commits on Source (2)
7 mantis ilias 41082
· 2685b3df
Christoph Ludolf
authored
Apr 25, 2024
2685b3df
Merge pull request #7428 from chlulei/7_mantis_ilias_41082
· 61ee389f
Stefan Meyer
authored
Apr 26, 2024
7 mantis ilias 41082
61ee389f
Hide whitespace changes
Inline
Side-by-side
Services/Calendar/classes/class.ilCalendarPresentationGUI.php
View file @
61ee389f
...
...
@@ -175,6 +175,7 @@ class ilCalendarPresentationGUI
protected
function
initAndRedirectToConsultationHours
()
{
$visibility
=
ilCalendarVisibility
::
_getInstanceByUserId
(
$this
->
user
->
getId
(),
$this
->
ref_id
);
$consultation_hours_initialized
=
false
;
foreach
(
$this
->
cats
->
getCategoriesInfo
()
as
$info
)
{
if
(
$info
[
"type"
]
==
ilCalendarCategory
::
TYPE_CH
&&
...
...
@@ -190,8 +191,14 @@ class ilCalendarPresentationGUI
$this
->
ctrl
->
redirectToURL
(
$this
->
ctrl
->
getLinkTargetByClass
(
\ilCalendarMonthGUI
::
class
,
''
)
);
$consultation_hours_initialized
=
true
;
}
}
if
(
!
$consultation_hours_initialized
)
{
$this
->
ctrl
->
redirectToURL
(
$this
->
ctrl
->
getLinkTargetByClass
(
\ilCalendarMonthGUI
::
class
,
''
)
);
}
}
/**
...
...