aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-28 20:45:52 -0400
committerJoey Hess <joey@kitenet.net>2012-03-28 20:45:52 -0400
commitd366a7bbb5d1672aeef89c767d3b1911d35d333e (patch)
tree30bf6344d5cbdee0d6bd35da2b23c76b469e602f /IkiWiki
parent6c297c40974648f588d2c8118cc579d35592383d (diff)
downloadikiwiki-d366a7bbb5d1672aeef89c767d3b1911d35d333e.tar
ikiwiki-d366a7bbb5d1672aeef89c767d3b1911d35d333e.tar.gz
don't force old subscriptions value when posting
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/notifyemail.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/notifyemail.pm b/IkiWiki/Plugin/notifyemail.pm
index 926761d94..0c067270c 100644
--- a/IkiWiki/Plugin/notifyemail.pm
+++ b/IkiWiki/Plugin/notifyemail.pm
@@ -28,8 +28,11 @@ sub formbuilder_setup (@) {
my $session=$params{session};
$form->field(name => "subscriptions", size => 50,
fieldset => "preferences",
- comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")",
- value => getsubscriptions($session->param("name")));
+ comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")");
+ if (! $form->submitted) {
+ $form->field(name => "subscriptions", force => 1,
+ value => getsubscriptions($session->param("name")));
+ }
}
sub formbuilder (@) {