From: Joey Hess Date: Thu, 29 Mar 2012 00:45:52 +0000 (-0400) Subject: don't force old subscriptions value when posting X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d366a7bbb5d1672aeef89c767d3b1911d35d333e;p=ikiwiki.git don't force old subscriptions value when posting --- 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 (@) {