summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-12-19 18:18:43 +0100
committerYorhel <git@yorhel.nl>2010-12-19 18:18:43 +0100
commit9190c003d0b895c7ce2fca3d5354923dcf4ab6a0 (patch)
tree359a079f8a5771d251ceb692ec2fe711a39c117b /lib/VNDB/Handler/VNPage.pm
parent71e0366b287e99a8b6ad2d9aaf7234a2bb707795 (diff)
RFC-01: Fixed release list updating dropdown on VN pages
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r--lib/VNDB/Handler/VNPage.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 5747acba..b07a7914 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -385,7 +385,7 @@ sub _releases {
}
if($self->authInfo->{id}) {
- my $l = $self->dbVNListGet(uid => $self->authInfo->{id}, rid => [map $_->{id}, @$r]);
+ my $l = $self->dbRListGet(uid => $self->authInfo->{id}, rid => [map $_->{id}, @$r]);
for my $i (@$l) {
[grep $i->{rid} == $_->{id}, @$r]->[0]{ulist} = $i;
}
@@ -420,9 +420,8 @@ sub _releases {
end;
td class => 'tc5';
if($self->authInfo->{id}) {
- a href => "/r$rel->{id}", id => "rlsel_$rel->{id}", class => 'vnrlsel';
- lit $rel->{ulist} ? liststat $rel->{ulist} : '--';
- end;
+ a href => "/r$rel->{id}", id => "rlsel_$rel->{id}", class => 'vnrlsel',
+ $rel->{ulist} ? mt '_rlst_stat_'.$rel->{ulist}{status} : '--';
} else {
txt ' ';
}