Mailing List Archive

rt branch, 4.4/keep-saved-chart-context, created. rt-4.4.4-1-g195deb40a1
The branch, 4.4/keep-saved-chart-context has been created
at 195deb40a1b9d6e4ead51f644f1ba952c62f1d1c (commit)

- Log -----------------------------------------------------------------
commit 195deb40a1b9d6e4ead51f644f1ba952c62f1d1c
Author: craig kaiser <craig@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};

-----------------------------------------------------------------------
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit