]> BookStack Code Mirror - bookstack/blobdiff - app/Search/SearchOptions.php
Search: Prevented negated terms filling in UI inputs
[bookstack] / app / Search / SearchOptions.php
index e362a8a015f476a4003dbe9c949156b436971dcd..7f9db2a64302b7dbea4f860a2919ec5b0dbd3de3 100644 (file)
@@ -244,9 +244,9 @@ class SearchOptions
         }
 
         // Negated items
-        array_push($options, ...$this->exacts->negated());
-        array_push($options, ...$this->tags->negated());
-        array_push($options, ...$this->filters->negated());
+        array_push($options, ...$this->exacts->negated()->all());
+        array_push($options, ...$this->tags->negated()->all());
+        array_push($options, ...$this->filters->negated()->all());
 
         return implode(' ', array_map(fn(SearchOption $o) => $o->toString(), $options));
     }