[Rt-commit] r13397 - rt/3.8/trunk/share/html/Elements

ruz at bestpractical.com ruz at bestpractical.com
Wed Jun 18 17:02:35 EDT 2008


Author: ruz
Date: Wed Jun 18 17:02:35 2008
New Revision: 13397

Modified:
   rt/3.8/trunk/share/html/Elements/ShowSearch

Log:
* report an error to the user if a container object hasn't been loaded

Modified: rt/3.8/trunk/share/html/Elements/ShowSearch
==============================================================================
--- rt/3.8/trunk/share/html/Elements/ShowSearch	(original)
+++ rt/3.8/trunk/share/html/Elements/ShowSearch	Wed Jun 18 17:02:35 2008
@@ -62,6 +62,10 @@
 
 if ($SavedSearch) {
     my ( $container_object, $search_id ) = _parse_saved_search($SavedSearch);
+    unless ( $container_object ) {
+        $m->out(loc("Either you have no rights to view saved search [_1] or identifier is incorrect", $SavedSearch));
+        return;
+    }
     $search = $container_object->Attributes->WithId($search_id);
     unless ( $search->Id && ref( $SearchArg = $search->Content ) eq 'HASH' ) {
         $m->out(loc("Saved Search [_1] not found", $SavedSearch)) unless $IgnoreMissing;


More information about the Rt-commit mailing list