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

Jim Brandt jbrandt at bestpractical.com
Wed Sep 7 14:24:01 EDT 2016


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

- Log -----------------------------------------------------------------
commit 77994b0d99596bb5ec686ff5a4e33545da45ea4f
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.

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