fix call of getDocumentChooserHtml()

This commit is contained in:
Uwe Steinmann 2020-12-15 10:02:18 +01:00
parent 6e2133747d
commit 0c399ced95

View File

@ -1773,7 +1773,7 @@ $(document).ready(function() {
$target = $dms->getDocument($objvalue); $target = $dms->getDocument($objvalue);
else else
$target = null; $target = null;
$content .= $this->getDocumentChooserHtml("attr".$attrdef->getId(), $target, $fieldname."[".$attrdef->getId()."]"); $content .= $this->getDocumentChooserHtml("attr".$attrdef->getId(), M_READ, -1, $target, $fieldname."[".$attrdef->getId()."]");
break; break;
case SeedDMS_Core_AttributeDefinition::type_user: case SeedDMS_Core_AttributeDefinition::type_user:
$objvalue = $attribute ? (is_object($attribute) ? $attribute->getValueAsArray() : $attribute) : array(); $objvalue = $attribute ? (is_object($attribute) ? $attribute->getValueAsArray() : $attribute) : array();