Skip to content

Commit 9fa1117

Browse files
committed
Make sure inner dashboard ids reference to real dashboard attributes
When dashboards are imported from another instance, the inner dashboard ids in content might be outdated if the referenced inner dashboards do not exist any more. This fixes the following error during upgrade: Can't use string ... as a HASH ref while "strict refs" in use at etc/upgrade/5.9.1/content line 27
1 parent 484cd43 commit 9fa1117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

etc/upgrade/5.9.1/content

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ our @Final = (
2323
$changed ||= 1;
2424
my $dashboard = RT::Attribute->new( RT->SystemUser );
2525
$dashboard->Load( $portlet->{id} );
26-
if ( $dashboard->Id ) {
26+
if ( $dashboard->Id && $dashboard->Name eq 'Dashboard' ) {
2727
push @new_panes, @{ $dashboard->Content->{'Panes'}{$pane} || [] }
2828
if $dashboard->Content;
2929
}

0 commit comments

Comments
 (0)