Skip to content

Commit

Permalink
Bug: 14838 Fix errors on initial quick search breaking subsequent sea…
Browse files Browse the repository at this point in the history
…rches.

If the error occurs on the first search, the search buffer is never
setup correctly, despite the fact we are still viewing the search
results.  Include the 'search' parameter in the viewport metadata
returned by the error object to indicate it's a search request.
  • Loading branch information
mrubinsk committed May 28, 2019
1 parent 1ba5fa2 commit 078bd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ajax/Application/Viewport/Error.php
Expand Up @@ -51,7 +51,7 @@ public function toObject()
$ob->error = true;
$ob->label = $this->_mbox->label;
$ob->view = $this->_mbox->form_to;

$ob->metadata->search = strpos((string)$this->_mbox, IMP_Search::MBOX_PREFIX) === 0;
return $ob;
}

Expand Down

0 comments on commit 078bd29

Please sign in to comment.