Hi Uwe,
following lines apper two times in out.AddDocument.php:
I did not check if they are 100% identical, but at least attributes are shown two times.
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_all));
if($attrdefs) {
foreach($attrdefs as $attrdef) {
$arr = $this->callHook('addDocumentAttribute', null, $attrdef);
if(is_array($arr)) {
if($arr) {
echo "<tr>";
echo "<td>".$arr[0].":</td>";
echo "<td>".$arr[1]."</td>";
echo "</tr>";
}
} else {
?>
<tr>
<td><?php echo htmlspecialchars($attrdef->getName()); ?></td>
<td><?php $this->printAttributeEditField($attrdef, '') ?></td>
</tr>
<?php
}
}
}
Sorry, I meant class.AddDocument.php in views/bootstrap ...
Sure? I don't see the duplication. There are very similar code blocks, because both documents and document contents can have attributes. If an attribute is defined to usable by all object types (document, content, folder) it will actually show up twice in the form.
OK, sorry, you are absolutely right. It is one for the document and one for the document version. Ticket can be closed!