[Rt-commit] r19740 - rt/3.8/trunk/share/html/Dashboards
elacour at bestpractical.com
elacour at bestpractical.com
Wed May 20 10:36:44 EDT 2009
Author: elacour
Date: Wed May 20 10:36:44 2009
New Revision: 19740
Modified:
rt/3.8/trunk/share/html/Dashboards/Queries.html
Log:
Make difference in Dashboard queries between saved searches and graphs (like in
RT at a glance pref) (closes: #13497).
Modified: rt/3.8/trunk/share/html/Dashboards/Queries.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Queries.html (original)
+++ rt/3.8/trunk/share/html/Dashboards/Queries.html Wed May 20 10:36:44 2009
@@ -124,7 +124,9 @@
for my $object (@objs) {
for ($m->comp("/Search/Elements/SearchesForObject", Object => $object)) {
my ($desc, $search) = @$_;
- $desc = "Saved Search: $desc";
+ my $SearchType = $search->Content->{'SearchType'} || 'Ticket';
+ my $type = ($SearchType eq 'Ticket') ? 'Saved Search' : $SearchType; # loc
+ $desc = "$type: $desc";
my $privacy = $Dashboard->_build_privacy($object);
my $name = 'search-' . $search->Id . '-' . $privacy;
push @items, [$name, $desc];
More information about the Rt-commit
mailing list