show[Document|Folder]Attribute may return a string

This commit is contained in:
Uwe Steinmann 2019-10-19 09:17:49 +02:00
parent da5fed3591
commit 8c73f36151
2 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,8 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
echo "<td>".$arr[0].":</td>";
echo "<td>".$arr[1]."</td>";
echo "</tr>";
} elseif(is_string($arr)) {
echo $arr;
} else {
$this->printAttribute($attribute);
}

View File

@ -262,6 +262,8 @@ $('body').on('click', '.order-btn', function(ev) {
echo "<td>".$arr[0].":</td>";
echo "<td>".$arr[1].":</td>";
echo "</tr>";
} elseif(is_string($arr)) {
echo $arr;
} else {
$attrdef = $attribute->getAttributeDefinition();
?>