summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Releases
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r--lib/VNWeb/Releases/Edit.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VNWeb/Releases/Edit.pm b/lib/VNWeb/Releases/Edit.pm
index 28fc96d4..21563c34 100644
--- a/lib/VNWeb/Releases/Edit.pm
+++ b/lib/VNWeb/Releases/Edit.pm
@@ -30,6 +30,10 @@ my $FORM = {
engine => { required => 0, default => '', maxlength => 50 },
extlinks => validate_extlinks('r'),
notes => { required => 0, default => '', maxlength => 10240 },
+ vn => { sort_keys => 'vid', aoh => {
+ vid => { id => 1 },
+ title => { _when => 'out' },
+ } },
hidden => { anybool => 1 },
locked => { anybool => 1 },
@@ -62,6 +66,8 @@ TUWF::get qr{/$RE{rrev}/(?<action>edit|copy)} => sub {
});
to_extlinks $e;
+ enrich_merge vid => 'SELECT id AS vid, title FROM vn WHERE id IN', $e->{vn};
+
my $title = ($copy ? 'Copy ' : 'Edit ').$e->{title};
framework_ title => $title, type => 'r', dbobj => $e, tab => tuwf->capture('action'),
sub {