mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
fix some code which was intended for 5.0.x
This commit is contained in:
parent
31d0c49412
commit
2cdc9e3a1f
|
@ -2126,9 +2126,9 @@ class SeedDMS_Core_DMS {
|
||||||
|
|
||||||
$versions = array();
|
$versions = array();
|
||||||
foreach($resArr as $row) {
|
foreach($resArr as $row) {
|
||||||
$document = new $this->classnames['document']($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
$document = new SeedDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||||
$document->setDMS($this);
|
$document->setDMS($this);
|
||||||
$version = new $this->classnames['documentcontent']($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum']);
|
$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']])) {
|
if(!isset($versions[$row['dupid']])) {
|
||||||
$versions[$row['id']]['content'] = $version;
|
$versions[$row['id']]['content'] = $version;
|
||||||
$versions[$row['id']]['duplicates'] = array();
|
$versions[$row['id']]['duplicates'] = array();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user