ezsystems/ezpublish-legacy — pull request #897 by peterkeung (2014-03-04 18:36:12+00:00)
Title: Fix for EZP-22435: Set a default checkbox value so it is saved

JIRA issue: https://jira.ez.no/browse/EZP-22435

If a checkbox has no default value, then the custom tag is saved with an empty value. Disabling and re-enabling the editor with a checked custom tag checkbox but with an empty value loses the "checked" property.

This fix just ensures that the value of the checkbox falls back to "1" instead of empty so that its "checked" property is preserved.