diff options
author | Yorhel <git@yorhel.nl> | 2011-03-20 16:37:20 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-03-20 16:37:20 +0100 |
commit | 378fc091c78814377c04fad0bc11edd9dee33a36 (patch) | |
tree | c1187d6165de68934b4d4be75bf542511105ff38 /lib | |
parent | a1a53f272aef98e30141e5a9dc554b92cf90b137 (diff) |
chardb: Fixed no-change-edit-bug + test data insertion error
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Handler/Chars.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm index 25be9487..2c7d3330 100644 --- a/lib/VNDB/Handler/Chars.pm +++ b/lib/VNDB/Handler/Chars.pm @@ -300,7 +300,7 @@ sub edit { # check for changes my $same = $id && !grep $frm->{$_} ne $b4{$_}, keys %b4; - $self->resRedirect("/c$id", 'post') if !$copy && $same; + return $self->resRedirect("/c$id", 'post') if !$copy && $same; $frm->{_err} = ['nochanges'] if $copy && $same; } |