don't force old subscriptions value when posting

master
Joey Hess 2012-03-28 20:45:52 -04:00
parent 6c297c4097
commit d366a7bbb5
1 changed files with 5 additions and 2 deletions

View File

@ -28,8 +28,11 @@ sub formbuilder_setup (@) {
my $session=$params{session}; my $session=$params{session};
$form->field(name => "subscriptions", size => 50, $form->field(name => "subscriptions", size => 50,
fieldset => "preferences", fieldset => "preferences",
comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")", comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")");
if (! $form->submitted) {
$form->field(name => "subscriptions", force => 1,
value => getsubscriptions($session->param("name"))); value => getsubscriptions($session->param("name")));
}
} }
sub formbuilder (@) { sub formbuilder (@) {