summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Producers.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-12-05 18:51:14 +0100
committerYorhel <git@yorhel.nl>2009-12-05 18:56:46 +0100
commit6daab15dc03a82ac6f782edbe4c509e2fedf5746 (patch)
treeb80cb360c4372a80abc4dcb09c3c296f2481c610 /lib/VNDB/Handler/Producers.pm
parent9aa6f31f9a800157dd6899e3b237316890e2872f (diff)
SQL: Removed changes.causedby
This column was used to differentiate between automated edits and user edits, but that later changed to checking for changes.requester = 1. The column has since never really been used, and due to a bug introduced in VNDB 2.0, it has never been updated, either. Meaning it's not even accurate for any database changes made after december 2008...
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r--lib/VNDB/Handler/Producers.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index 18fde2f6..d3f570ab 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -187,15 +187,14 @@ sub edit {
$frm->{l_wp} = undef if !$frm->{l_wp};
$rev = 1;
my $npid = $pid;
- my $cid;
- ($rev, $cid) = $self->dbItemEdit(p => $pid, %$frm) if $pid;
- ($npid, $cid) = $self->dbItemAdd(p => %$frm) if !$pid;
+ ($rev) = $self->dbItemEdit(p => $pid, %$frm) if $pid;
+ ($npid) = $self->dbItemAdd(p => %$frm) if !$pid;
# update reverse relations
if(!$pid && $#$relations >= 0 || $pid && $frm->{prodrelations} ne $b4{prodrelations}) {
my %old = $pid ? (map { $_->{id} => $_->{relation} } @{$p->{relations}}) : ();
my %new = map { $_->[1] => $_->[0] } @$relations;
- _updreverse($self, \%old, \%new, $npid, $cid, $rev);
+ _updreverse($self, \%old, \%new, $npid, $rev);
}
return $self->resRedirect("/p$npid.$rev", 'post');
@@ -259,7 +258,7 @@ sub edit {
# !IMPORTANT!: Don't forget to update this function when
# adding/removing fields to/from producer entries!
sub _updreverse {
- my($self, $old, $new, $pid, $cid, $rev) = @_;
+ my($self, $old, $new, $pid, $rev) = @_;
my %upd;
# compare %old and %new
@@ -281,7 +280,6 @@ sub _updreverse {
$self->dbItemEdit(p => $i,
relations => \@newrel,
editsum => "Reverse relation update caused by revision p$pid.$rev",
- causedby => $cid,
uid => 1, # Multi - hardcoded
( map { $_ => $r->{$_} } qw|type name original lang website desc alias| )
);