[Rt-commit] rt branch, 4.2/fixup-version-history, repushed
Jim Brandt
jbrandt at bestpractical.com
Fri Jul 19 14:44:54 EDT 2013
The branch 4.2/fixup-version-history was deleted and repushed:
was e011add1373a7f267fa1244487d51391a358d8df
now 824c4078f51d495021ac7e2b3b1cc7117b64141b
1: 884b153 = 1: 884b153 Hide upgrade history from global attributes on config page
2: e011add ! 2: 824c407 Updates to initial display of RT upgrade history
@@ -26,6 +26,9 @@
+ my $self = shift;
+ my $rt_history_ref = shift;
+ my @ordered_history;
++
++ return \@ordered_history
++ unless $rt_history_ref and scalar @{$rt_history_ref};
+
+ # Walk through the RT history backward and add keys to flag
+ # full upgrade 'parent' entries and 'children' entries
@@ -86,6 +89,17 @@
+
+ my @packages = ('RT', sort grep { $_ ne 'RT' } keys %$upgrade_history);
+ $upgrade_history->{'RT'} = RT->System->GroupRTUpgradeHistory($upgrade_history->{'RT'});
++
++ if ( not scalar @{$upgrade_history->{'RT'}} ){
++ push @{$upgrade_history->{'RT'}},
++ { stage => 'after',
++ action => 'upgrade',
++ type => 'No upgrade history found',
++ timestamp => '',
++ from => 'N/A',
++ to => 'N/A',
++ rt_version => '', };
++ }
-% my $upgrade_history = RT->System->UpgradeHistory;
-% my @packages = ('RT', sort grep { $_ ne 'RT' } keys %$upgrade_history);
More information about the Rt-commit
mailing list