[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-166-g89a15cc
Shawn Moore
sartak at bestpractical.com
Wed Oct 6 19:04:00 EDT 2010
The branch, 3.8-trunk has been updated
via 89a15ccf9867d902214817d123f32bd6f2e43f6d (commit)
from 8342cef017077b3bd0dea087d710ab87de49c4b4 (commit)
Summary of changes:
share/html/Prefs/MyRT.html | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 89a15ccf9867d902214817d123f32bd6f2e43f6d
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Oct 6 18:58:01 2010 -0400
Try safeguarding against searches without ->Content
Possible 3.6.x upgrade issue?
diff --git a/share/html/Prefs/MyRT.html b/share/html/Prefs/MyRT.html
index 4761377..6abe338 100644
--- a/share/html/Prefs/MyRT.html
+++ b/share/html/Prefs/MyRT.html
@@ -123,7 +123,16 @@ my @sys_searches;
for my $object (@objs) {
for ($m->comp("/Search/Elements/SearchesForObject", Object => $object)) {
my ($desc, $search) = @$_;
- my $SearchType = $search->Content->{'SearchType'} || 'Ticket';
+
+ my $SearchType = 'Ticket';
+ if ((ref($search->Content)||'') eq 'HASH') {
+ $SearchType = $search->Content->{'SearchType'}
+ if $search->Content->{'SearchType'};
+ }
+ else {
+ $RT::Logger->debug("Search ".$search->id." ($desc) appears to have no Content");
+ }
+
if ($object eq $sys && $SearchType eq 'Ticket') {
push @items, ["system-$desc", $desc];
push @sys_searches, [$desc, $search];
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list