Skip to content

Changed the default value for the "allow_blank" parameter to None

Timo requested to merge topic/3.1/allow_blank_validation into branch/3.1

While developing with this helpful library, I noticed that when editing a document with validation that the XML attribute allow_blank was dropped from the data validation object. After some debugging, I found out, that the default value of the allow_blank parameter in the constructor of the DataValidation class overrode the actual value passed to the allowBlank parameter.

Probably further testing would have prevented this bug from being implemented in !419 (merged), but for now I have simply corrected the default value for the allow_blank parameter to None, which should fix the bug and not change the idea behind the default values.

Merge request reports