diff options
author | Yorhel <git@yorhel.nl> | 2019-09-11 17:05:27 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-11 17:05:44 +0200 |
commit | 04e92a4ef886c141783efcb1c62de12722511cc4 (patch) | |
tree | 71e1cce07de6bb8760d62a7d197a6b34cab15e67 /lib/VNDB/Handler/Releases.pm | |
parent | 82ade4157f86891c3d90336155a942976e1df934 (diff) |
VNDB::Types: Convert (wishlist|rlist|vnlist)_status
I did create a function to export arrays, but ended up exporting them as
hashes. That ought to simplify a conversion to an enum type. Which will
likely never happen because I'd rather switch to dynamic user-defined
statuses, but that's quite a step further...
Diffstat (limited to 'lib/VNDB/Handler/Releases.pm')
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index ed9d4627..ff687dec 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -287,10 +287,10 @@ sub _infotable { td 'User options'; td; Select id => 'listsel', name => $self->authGetCode("/r$r->{id}/list"); - option value => -2, !$rl ? 'not on your list' : "Status: $self->{rlist_status}[$rl->{status}]"; + option value => -2, !$rl ? 'not on your list' : "Status: $RLIST_STATUS{$rl->{status}}"; optgroup label => 'Set status'; - option value => $_, $self->{rlist_status}[$_] - for (0..$#{$self->{rlist_status}}); + option value => $_, $RLIST_STATUS{$_} + for (keys %RLIST_STATUS); end; option value => -1, 'remove from list' if $rl; end; |