[Rt-commit] r2624 - rt/branches/3.4-RELEASE/html/Search/Elements
tla at bestpractical.com
tla at bestpractical.com
Wed Apr 13 13:42:52 EDT 2005
Author: tla
Date: Wed Apr 13 13:42:51 2005
New Revision: 2624
Modified:
rt/branches/3.4-RELEASE/html/Search/Elements/SelectSearchesForObjects
Log:
Change to exclude saved searches meant for things other than tickets.
Modified: rt/branches/3.4-RELEASE/html/Search/Elements/SelectSearchesForObjects
==============================================================================
--- rt/branches/3.4-RELEASE/html/Search/Elements/SelectSearchesForObjects (original)
+++ rt/branches/3.4-RELEASE/html/Search/Elements/SelectSearchesForObjects Wed Apr 13 13:42:51 2005
@@ -57,6 +57,9 @@
% }
% my @searches = $object->Attributes->Named('SavedSearch');
% foreach my $search (@searches) {
+% # Skip it if it is not a ticket search.
+% next if ($search->SubValue('SearchType')
+% && $search->SubValue('SearchType') ne 'Ticket');
<option value="<%ref($object)%>-<%$object->id%>-SavedSearch-<%$search->Id%>"> -<%$search->Description||loc('Unnamed search')%></option>
% }
% }
More information about the Rt-commit
mailing list