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);
else
$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;
case SeedDMS_Core_AttributeDefinition::type_user:
$objvalue = $attribute ? (is_object($attribute) ? $attribute->getValueAsArray() : $attribute) : array();