diff --git a/Services/Block/classes/class.ilBlockGUI.php b/Services/Block/classes/class.ilBlockGUI.php index ff6bbc26f3e0..45f9aa360b7d 100644 --- a/Services/Block/classes/class.ilBlockGUI.php +++ b/Services/Block/classes/class.ilBlockGUI.php @@ -20,6 +20,7 @@ use ILIAS\Filesystem\Stream\Streams; use ILIAS\HTTP\Response\Sender\ResponseSendingException; +use ILIAS\UI\Component\Modal\Modal; /** * This class represents a block method of a block. @@ -884,7 +885,7 @@ public function getHTMLNew(): string }); } - if (isset($command['modal']) && $command['modal'] instanceof \ILIAS\UI\Component\Modal\Modal) { + if (isset($command['modal']) && $command['modal'] instanceof Modal) { $button = $button->withOnClick($command["modal"]->getShowSignal()); $modals[] = $command['modal']; } diff --git a/Services/Dashboard/Block/classes/class.ilDashboardBlockGUI.php b/Services/Dashboard/Block/classes/class.ilDashboardBlockGUI.php index 4998c4445485..2dfb187e19e1 100644 --- a/Services/Dashboard/Block/classes/class.ilDashboardBlockGUI.php +++ b/Services/Dashboard/Block/classes/class.ilDashboardBlockGUI.php @@ -437,7 +437,7 @@ public function changePDItemSortingObject(): void public function changePDItemPresentationObject(): void { $this->viewSettings->storeActorPresentationMode( - \ilUtil::stripSlashes((string) ($this->http->request()->getQueryParams()['presentation'] ?? '')) + ilUtil::stripSlashes((string) ($this->http->request()->getQueryParams()['presentation'] ?? '')) ); $this->initAndShow(); } diff --git a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php index 1a65d7dc5064..1bcc701e9cb5 100644 --- a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php +++ b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php @@ -470,17 +470,17 @@ public function enabledStudyProgrammes(): bool public function enableRecommendedContent(bool $status): void { - $this->settings->set('enable_recommended_content', (string) !$status); + $this->settings->set('enable_recommended_content', $status ? "0" : "1"); } public function enableLearningSequences(bool $status): void { - $this->settings->set('enable_learning_sequences', (string) !$status); + $this->settings->set('enable_learning_sequences', $status ? "0" : "1"); } public function enableStudyProgrammes(bool $status): void { - $this->settings->set('enable_study_programmes', (string) !$status); + $this->settings->set('enable_study_programmes', $status ? "0" : "1"); } public function getViewName(int $view): string diff --git a/Services/Dashboard/templates/default/tpl.remove_multiple_modal_id_wrapper.html b/Services/Dashboard/templates/default/tpl.remove_multiple_modal_id_wrapper.html index ad5b652e1b41..08fbf9bd279e 100644 --- a/Services/Dashboard/templates/default/tpl.remove_multiple_modal_id_wrapper.html +++ b/Services/Dashboard/templates/default/tpl.remove_multiple_modal_id_wrapper.html @@ -1,3 +1,3 @@