diff --git a/Services/Repository/Trash/class.ilTrashTableGUI.php b/Services/Repository/Trash/class.ilTrashTableGUI.php index c4ef850aa73f..369da4a74455 100644 --- a/Services/Repository/Trash/class.ilTrashTableGUI.php +++ b/Services/Repository/Trash/class.ilTrashTableGUI.php @@ -1,5 +1,4 @@ setDefaultFilterVisiblity(true); - - $type = $this->addFilterItemByMetaType( 'type', ilTable2GUI::FILTER_SELECT, @@ -101,7 +98,9 @@ public function initFilter(): void $this->lng->txt('type') ); $type->setOptions($this->prepareTypeFilterTypes()); - $this->current_filter['type'] = $type->getValue(); + if ($type->getValue() != '') { + $this->current_filter['type'] = $type->getValue(); + } $title = $this->addFilterItemByMetaType( 'title', @@ -109,8 +108,9 @@ public function initFilter(): void false, $this->lng->txt('title') ); - $this->current_filter['title'] = $title->getValue(); - + if ($title->getValue() != '') { + $this->current_filter['title'] = $title->getValue(); + } $deleted_by = $this->addFilterItemByMetaType( 'deleted_by', ilTable2GUI::FILTER_TEXT,