summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-11 20:29:11 +0100
committerYorhel <git@yorhel.nl>2010-11-11 20:29:11 +0100
commit296bb4c887f442b77ac69463027d8d973c7ca2ab (patch)
tree8bca8c1eddcf9dcee66d1dd5495239cbbccdcff3 /lib
parent3bf6e39ab20d106152f2016ccf6eae26e844d846 (diff)
Handler::VNEdit: Fixed bug with reverse relation update of "official"
The official flag of untouched relations wasn't properly copied from the old revision.
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/VNEdit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index 0d565dc6..8ee104af 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -275,7 +275,7 @@ sub _updreverse {
# edit all related VNs
for my $i (keys %upd) {
my $r = $self->dbVNGet(id => $i, what => 'relations')->[0];
- my @newrel = map $_->{id} != $vid ? [ $_->{relation}, $_->{id} ] : (), @{$r->{relations}};
+ my @newrel = map $_->{id} != $vid ? [ $_->{relation}, $_->{id}, $_->{official} ] : (), @{$r->{relations}};
push @newrel, [ $upd{$i}[0], $vid, $upd{$i}[1] ] if $upd{$i};
$self->dbItemEdit(v => $r->{cid},
relations => \@newrel,