[Rt-commit] rt branch, 4.4/keep-saved-chart-context, created. rt-4.4.4-1-g195deb40a1

Craig Kaiser craig at bestpractical.com
Thu Jun 18 09:27:19 EDT 2020


The branch, 4.4/keep-saved-chart-context has been created
        at  195deb40a1b9d6e4ead51f644f1ba952c62f1d1c (commit)

- Log -----------------------------------------------------------------
commit 195deb40a1b9d6e4ead51f644f1ba952c62f1d1c
Author: craig kaiser <craig at bestpractical.com>
Date:   Thu Jun 18 09:24:30 2020 -0400

    Pass SavedChartSearchId from chart portlet
    
    If this value is not passed the context of the saved chart will not be
    there and the "Update" button will not be present on the chart.html
    page.

diff --git a/share/html/Elements/ShowSearch b/share/html/Elements/ShowSearch
index 8e415f6362..2714fb5d37 100644
--- a/share/html/Elements/ShowSearch
+++ b/share/html/Elements/ShowSearch
@@ -78,6 +78,10 @@ if ($SavedSearch) {
     $SearchArg->{'SearchType'} ||= 'Ticket';
     if ( $SearchArg->{SearchType} ne 'Ticket' ) {
 
+        if ( $SearchArg->{'SearchType'} && $SearchArg->{'SearchType'} eq 'Chart' ) {
+            $SearchArg->{'SavedChartSearchId'} ||= $SavedSearch;
+        }
+
         # XXX: dispatch to different handler here
         $query_display_component
             = '/Search/Elements/' . $SearchArg->{SearchType};

-----------------------------------------------------------------------


More information about the rt-commit mailing list