]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
websetup: Fix defaults of checkboxes in advanced mode.
authorJoey Hess <joey@kitenet.net>
Fri, 12 Nov 2010 05:55:11 +0000 (01:55 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 12 Nov 2010 05:55:11 +0000 (01:55 -0400)
commitca0be509327121a29b59e9149e51564e6d2487a1
tree18495026e096e2a827c581c94e7bd2c4acaada35
parentc87dab2c667d827bf8f8462e4427b79eff7919fb
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.
(cherry picked from commit cfbd272c8bdbb96b6e92449f4d940fb2b72aa651)

Conflicts:

debian/changelog
IkiWiki/Plugin/websetup.pm
debian/changelog