View | Details | Raw Unified | Return to bug 24387
Collapse All | Expand All

(-)a/installer/data/mysql/db_revs/210600016.pl (-3 / +2 lines)
Lines 132-139 return { Link Here
132
132
133
            my $idnew = $parent_idnew || $c->{idnew};
133
            my $idnew = $parent_idnew || $c->{idnew};
134
            my $code = ( grep {$_ eq $location} qw( staff_and_opac staff_only opac_only slip ) ) ? "${location}_$idnew" : "News_$idnew";
134
            my $code = ( grep {$_ eq $location} qw( staff_and_opac staff_only opac_only slip ) ) ? "${location}_$idnew" : "News_$idnew";
135
            $dbh->do(q|UPDATE additional_contents SET code=? WHERE idnew = ?|, undef, $code, $idnew) if $parent_idnew;
135
            $dbh->do(q|UPDATE additional_contents SET code=? WHERE idnew = ?|, undef, $code, $parent_idnew) if $parent_idnew;
136
            $dbh->do(q|UPDATE additional_contents SET code=? WHERE idnew = ?|, undef, $code, $idnew);
136
            $dbh->do(q|UPDATE additional_contents SET code=? WHERE idnew = ?|, undef, $code, $c->{idnew});
137
        }
137
        }
138
138
139
        $dbh->do(q|
139
        $dbh->do(q|
140
- 

Return to bug 24387