mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
fix output of checkboxes in printAttributeEditField()
This commit is contained in:
parent
881925d201
commit
423ef654c4
|
@ -1055,7 +1055,7 @@ function folderSelected<?php echo $form ?>(id, name) {
|
||||||
function printAttributeEditField($attrdef, $attribute, $fieldname='attributes') { /* {{{ */
|
function printAttributeEditField($attrdef, $attribute, $fieldname='attributes') { /* {{{ */
|
||||||
switch($attrdef->getType()) {
|
switch($attrdef->getType()) {
|
||||||
case SeedDMS_Core_AttributeDefinition::type_boolean:
|
case SeedDMS_Core_AttributeDefinition::type_boolean:
|
||||||
echo "<input type=\"checkbox\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"1\" ".($objvalue ? 'checked' : '')." />";
|
echo "<input type=\"checkbox\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"1\" ".(($attribute && $attribute->getValue()) ? 'checked' : '')." />";
|
||||||
break;
|
break;
|
||||||
case SeedDMS_Core_AttributeDefinition::type_date:
|
case SeedDMS_Core_AttributeDefinition::type_date:
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user