diff options
author | Yorhel <git@yorhel.nl> | 2019-10-13 09:49:37 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-10-13 09:49:38 +0200 |
commit | a0c617c9e099abf8a82e43782d92f43a5eafb210 (patch) | |
tree | 36f6737d2c6f9f39dc202855056de3e9beeac852 | |
parent | 8fdbf6bd1875d63582dca31ad9640924281253bc (diff) |
Fix 500 when posting notification form with empty selection
Broken in 0be1aa6acb62c13b4bcb4bd52a9c76df5f248e45
-rw-r--r-- | lib/VNWeb/User/Notifications.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/User/Notifications.pm b/lib/VNWeb/User/Notifications.pm index f37fc7ca..bb9328a2 100644 --- a/lib/VNWeb/User/Notifications.pm +++ b/lib/VNWeb/User/Notifications.pm @@ -150,7 +150,7 @@ TUWF::post qr{/$RE{uid}/notify_update}, sub { my $frm = tuwf->validate(post => url => { regex => qr{^/u$id/notifies} }, - notifysel => { required => 0, type => 'array', scalar => 1, values => { id => 1 } }, + notifysel => { required => 0, default => [], type => 'array', scalar => 1, values => { id => 1 } }, markread => { anybool => 1 }, remove => { anybool => 1 }, )->data; |