fix SeedDMS_Core_Document::remove when version had its own attachments

This commit is contained in:
Uwe Steinmann 2021-03-16 19:13:37 +01:00
parent 9d5c4a784f
commit 29cf87d85d
2 changed files with 6 additions and 0 deletions

View File

@ -2362,6 +2362,11 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
}
// remove all document files
/* make sure to get all attachments because _removeContent() did remove
* the attachments of a version already and the list of attachments
* is still stored in _documentFiles
* */
unset($this->_documentFiles);
$res = $this->getDocumentFiles();
if (is_bool($res) && !$res) {
$db->rollbackTransaction();

View File

@ -31,6 +31,7 @@
- add parameter $incdisabled to SeedDMS_Core_Folder::getNotifyList()
- do not validate value in SeedDMS_Core_Attribute::setValue(), it should have been done before
- SeedDMS_Core_DMS::search() can search for last date of document status change
- fix SeedDMS_Core_Document::remove when version had its own attachments
</notes>
<contents>
<dir baseinstalldir="SeedDMS" name="/">