diff --git a/CHANGELOG b/CHANGELOG index 39807f031..f478520af 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -183,6 +183,7 @@ - new api to fulltext search - do offer to export users of group if there are no users - config file can be set in env var SEEDDMS_CONFIG_FILE +- fix error when search for a boolean attribute value -------------------------------------------------------------------------------- Changes in version 5.1.20 diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index b7dfdb5ef..6ec8a3d6e 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1407,7 +1407,7 @@ $(document).ready(function() {

'.getMLText('tree_loading').'

'; @@ -1473,7 +1473,7 @@ function folderSelected(id, name) {

'.getMLText('tree_loading').'

'; @@ -1570,8 +1570,8 @@ $(document).ready(function() {

getType()) { case SeedDMS_Core_AttributeDefinition::type_boolean: + $objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : ''; $content .= "getId()."]\" value=\"\" />"; - $content .= "getId()."\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"1\" ".(($attribute && $attribute->getValue()) ? 'checked' : '')." />"; + $content .= "getId()."\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"1\" ".($objvalue ? 'checked' : '')." />"; break; case SeedDMS_Core_AttributeDefinition::type_date: $objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : ''; @@ -1837,7 +1838,7 @@ $(document).ready(function() {

'.getMLText('files_loading').'

';