[Rt-commit] rt branch 5.0/preserve-search-class-on-advanced-tab-parse-failure created. rt-5.0.2-113-gc4c899bf80

BPS Git Server git at git.bestpractical.com
Wed Mar 23 20:43:59 UTC 2022

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/preserve-search-class-on-advanced-tab-parse-failure has been created
        at  c4c899bf80a6a23e2c5280d863a4c4a62aeed4b7 (commit)

- Log -----------------------------------------------------------------
commit c4c899bf80a6a23e2c5280d863a4c4a62aeed4b7
Author: Brian Conry <bconry at bestpractical.com>
Date:   Wed Mar 23 15:39:50 2022 -0500

    Preserve search class on parse failures
    When using the advanced edit of a search the search class (e.g. Asset or
    Transaction) was not preserved if there was a parse error in the query,
    defaulting the search to being for Tickets.

diff --git a/share/html/Search/Build.html b/share/html/Search/Build.html
index a9c2a6215f..4134502648 100644
--- a/share/html/Search/Build.html
+++ b/share/html/Search/Build.html
@@ -249,6 +249,7 @@ if ( @parse_results ) {
     push @actions, @parse_results;
     return $m->comp(
+        Class => $Class,
         Query => $query{'Query'},
         Format => $query{'Format'},
         SavedSearchId => $saved_search{'Id'},



More information about the rt-commit mailing list