mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
retrieve complete document when checking for duplicates
This commit is contained in:
parent
3268603794
commit
711520234d
|
@ -2179,8 +2179,7 @@ class SeedDMS_Core_DMS {
|
|||
|
||||
$versions = array();
|
||||
foreach($resArr as $row) {
|
||||
$document = new SeedDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||
$document->setDMS($this);
|
||||
$document = $this->getDocument($row['document']);
|
||||
$version = new SeedDMS_Core_DocumentContent($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum']);
|
||||
if(!isset($versions[$row['dupid']])) {
|
||||
$versions[$row['id']]['content'] = $version;
|
||||
|
|
Loading…
Reference in New Issue
Block a user