[Rt-commit] r12079 - in rt/branches/3.8-TESTING: .
sartak at bestpractical.com
sartak at bestpractical.com
Mon May 5 19:38:21 EDT 2008
Author: sartak
Date: Mon May 5 19:38:19 2008
New Revision: 12079
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm
Log:
r55055 at onn: sartak | 2008-05-05 19:37:10 -0400
Fix some test failures from missing SearchType
Modified: rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm (original)
+++ rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm Mon May 5 19:38:19 2008
@@ -89,10 +89,14 @@
my $object = shift;
my $args = shift;
+ my $params = $args->{'SearchParams'};
+
+ $params->{'SearchType'} = $args->{'Type'} || 'Ticket';
+
return $object->AddAttribute(
'Name' => 'SavedSearch',
'Description' => $args->{'Name'},
- 'Content' => $args->{'SearchParams'},
+ 'Content' => $params,
);
}
More information about the Rt-commit
mailing list