Skip to content

Commit

Permalink
AdvMD: fix internal link filter
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitz-ilias committed Sep 13, 2023
1 parent de60469 commit c682f96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}
Expand Down

1 comment on commit c682f96

@schmitz-ilias
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.