Skip to content

Commit

Permalink
Improvement: Also hide duration on optionview.php if setting to hide …
Browse files Browse the repository at this point in the history
…duration for selflearningcourses is active.
  • Loading branch information
ibernhardf committed Dec 20, 2024
1 parent 23247e4 commit 25a124b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/output/bookingoption_description.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ public function __construct(
if (!empty($settings->selflearningcourse)) {
$this->selflearningcourse = true;

if (!empty($settings->duration)) {
if (get_config('booking', 'selflearningcoursehideduration')) {
$this->selflearningcourseshowdurationinfo = null;
} else if (!empty($settings->duration)) {
// We do not show duration info if it is set to 0.
$this->selflearningcourseshowdurationinfo = true;

Expand Down

0 comments on commit 25a124b

Please sign in to comment.