]> sipb.mit.edu Git - ikiwiki.git/commit
websetup: Fix defaults of checkboxes in advanced mode.
authorJoey Hess <joey@kitenet.net>
Mon, 11 Oct 2010 15:27:06 +0000 (11:27 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 11 Oct 2010 15:41:34 +0000 (11:41 -0400)
commitcfbd272c8bdbb96b6e92449f4d940fb2b72aa651
treeceb12f800d61a05f44e45428b013fd4dd9fdcfc8
parent274219ecc865f9bdcb65ad26e4750fa90dfaa670
websetup: Fix defaults of checkboxes in advanced mode.

So formbuilder has an annoying glitch, that setting the value of a
checkbox, even without force, will override the value currently on the
form. Thus the guards against changing checkbox values when a form has been
submitted.

But those guards also prevented the checkboxes for advanced items getting
the right value when going into advanced mode.

Note that if the user makes changes to advanced mode stuff and leaves
advanced mode, those changes are lost. That seems reasonable so I didn't
change it -- and it made this fix simple.
IkiWiki/Plugin/websetup.pm
debian/changelog