e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

Admin-UI: writeParms 'default' value not set if value = 0 #5090

Closed CaMer0n closed 8 months ago

CaMer0n commented 8 months ago

Bug Description

Admin-UI does not set the default value if the value is empty.

How to Reproduce

Add this to init(); $this->fields['my_field']['writeParms']['default'] = 0;

Expected Behavior

The default value for the field is set to 0 and displayed by renderElement()