diff options
author | Yorhel <git@yorhel.nl> | 2019-08-22 12:51:31 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-08-22 12:51:34 +0200 |
commit | c8e0d74c8f33d6c0d766d73e3445283555051c1f (patch) | |
tree | 013b57c78dbe7b92e6789a0a2a3a1f7859fca14b /lib/VNDB/Handler/Chars.pm | |
parent | 7e7d9dd2d34dcc2ca95e7fb8a1d941b796b0b531 (diff) |
Reset "original" field if it is the same as "title" or "name"
A rather common mistake made by people who don't read.
Diffstat (limited to 'lib/VNDB/Handler/Chars.pm')
-rw-r--r-- | lib/VNDB/Handler/Chars.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm index 814fce7b..4ef583c7 100644 --- a/lib/VNDB/Handler/Chars.pm +++ b/lib/VNDB/Handler/Chars.pm @@ -335,6 +335,7 @@ sub edit { { post => 'ihid', required => 0 }, { post => 'ilock', required => 0 }, ); + $frm->{original} = '' if $frm->{original} eq $frm->{name}; # handle image upload $frm->{image} = _uploadimage($self, $frm); |