[Rt-commit] rt branch, 4.4/saved-search-upgrade-warning, created. rt-4.4.1-110-ge35ad87

Jim Brandt jbrandt at bestpractical.com
Wed Sep 7 14:26:18 EDT 2016


The branch, 4.4/saved-search-upgrade-warning has been created
        at  e35ad873cd0a7670e5f114dfe1fa9fb876c57c03 (commit)

- Log -----------------------------------------------------------------
commit e35ad873cd0a7670e5f114dfe1fa9fb876c57c03
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Wed Sep 7 14:17:53 2016 -0400

    Add check for SearchType in upgrade step
    
    In some cases, saved search records in older RT DBs can
    have saved searches with no SearchType defined. Add a check
    to avoid upgrade warnings on these records.
    
    Fixes: I#32235

diff --git a/etc/upgrade/4.4.1/content b/etc/upgrade/4.4.1/content
index 73e992b..f8083b8 100644
--- a/etc/upgrade/4.4.1/content
+++ b/etc/upgrade/4.4.1/content
@@ -56,7 +56,8 @@ our @Initial = (
         while ( my $attr = $attrs->Next ) {
             my $content = $attr->Content;
 
-            next unless lc($content->{SearchType}) eq 'chart';
+            next unless $content->{SearchType}
+                and lc($content->{SearchType}) eq 'chart';
 
             next if $content->{ChartStyle}
                  && $content->{GroupBy}

-----------------------------------------------------------------------


More information about the rt-commit mailing list