From d366a7bbb5d1672aeef89c767d3b1911d35d333e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 28 Mar 2012 20:45:52 -0400 Subject: [PATCH] don't force old subscriptions value when posting --- IkiWiki/Plugin/notifyemail.pm | 7 +++++-- 1 file 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 (@) { -- 2.26.2