diff options
author | morkt <> | 2015-02-03 10:44:25 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-02-03 10:44:25 +0100 |
commit | 76548db77ef061f22c4b0d82a3f7affc2ca695f3 (patch) | |
tree | 583716962eed6aef7a9b65f972ade2c53f973a40 /lib/VNDB/Handler/Staff.pm | |
parent | 0d4a5d1c6b0b9dfcb901c56eb586efa20eac0c31 (diff) |
Conditionally append char IDs in seiyuu editor + minor fixes
Diffstat (limited to 'lib/VNDB/Handler/Staff.pm')
-rw-r--r-- | lib/VNDB/Handler/Staff.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Staff.pm b/lib/VNDB/Handler/Staff.pm index e85bb388..30d4e992 100644 --- a/lib/VNDB/Handler/Staff.pm +++ b/lib/VNDB/Handler/Staff.pm @@ -339,7 +339,8 @@ sub list { }); return $self->resRedirect('/s'.$list->[0]{id}, 'temp') - if $f->{q} && @$list == 1 && $f->{p} == 1 && !$f->{fil}; + if $f->{q} && @$list && (!first { $_->{id} != $list->[0]{id} } @$list) && $f->{p} == 1 && !$f->{fil}; + # redirect to the staff page if all results refer to the same entry my $quri = join(';', $f->{q} ? 'q='.uri_escape($f->{q}) : (), $f->{fil} ? "fil=$f->{fil}" : ()); $quri = '?'.$quri if $quri; |