From c682f964b41e9a350803c98ec25eee958c0823e6 Mon Sep 17 00:00:00 2001 From: Tim Schmitz Date: Wed, 13 Sep 2023 17:40:59 +0200 Subject: [PATCH] AdvMD: fix internal link filter --- .../class.ilADTInternalLinkSearchBridgeSingle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/ADT/classes/Types/InternalLink/class.ilADTInternalLinkSearchBridgeSingle.php b/Services/ADT/classes/Types/InternalLink/class.ilADTInternalLinkSearchBridgeSingle.php index 423b416d3f6b..f18ee43e9af9 100644 --- a/Services/ADT/classes/Types/InternalLink/class.ilADTInternalLinkSearchBridgeSingle.php +++ b/Services/ADT/classes/Types/InternalLink/class.ilADTInternalLinkSearchBridgeSingle.php @@ -54,7 +54,7 @@ public function addToForm(): void { $title = new ilTextInputGUI($this->getTitle(), $this->getElementId()); $title->setSize(255); - $title->setValue((string) $this->getADT()->getTargetRefId()); + $title->setValue($this->getTitleQuery()); $this->addToParentElement($title); } @@ -64,7 +64,7 @@ public function addToForm(): void public function loadFilter(): void { $value = $this->readFilter(); - if ($value !== null) { + if ($value !== null && $value !== '') { $this->getADT()->setTargetRefId(1); $this->setTitleQuery($value); }