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); }