From 44b9525615042da2dc8e68516287027e4ae9955a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 19 Mar 2018 11:31:50 +0100 Subject: [PATCH] set fall back value for attributes of type checkbox to '' --- views/bootstrap/class.Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 814bbc988..6f8382f26 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1205,7 +1205,7 @@ $(document).ready(function() { function printAttributeEditField($attrdef, $attribute, $fieldname='attributes', $norequire=false) { /* {{{ */ switch($attrdef->getType()) { case SeedDMS_Core_AttributeDefinition::type_boolean: - echo "getId()."]\" value=\"0\" />"; + echo "getId()."]\" value=\"\" />"; echo "getId()."\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"1\" ".(($attribute && $attribute->getValue()) ? 'checked' : '')." />"; break; case SeedDMS_Core_AttributeDefinition::type_date: