mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
a97fcbc67a
|
@ -255,6 +255,8 @@
|
||||||
- rest api returns version attributes as 'version_attributes' (was
|
- rest api returns version attributes as 'version_attributes' (was
|
||||||
'version-attributes'), each attribute also contains the name
|
'version-attributes'), each attribute also contains the name
|
||||||
- new hook in rest api to add more routes in extensions
|
- new hook in rest api to add more routes in extensions
|
||||||
|
- uploaded serveral documents at once by fast upload will assign random
|
||||||
|
sequence number to allow manually sorting the documents afterwards
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.27
|
Changes in version 5.1.27
|
||||||
|
|
|
@ -829,10 +829,11 @@ switch($command) {
|
||||||
$controller->setParam('filetype', $fileType);
|
$controller->setParam('filetype', $fileType);
|
||||||
$controller->setParam('userfiletype', $userfiletype);
|
$controller->setParam('userfiletype', $userfiletype);
|
||||||
$minmax = $folder->getDocumentsMinMax();
|
$minmax = $folder->getDocumentsMinMax();
|
||||||
|
$deviation = rand(10, 1000)/10;
|
||||||
if($settings->_defaultDocPosition == 'start')
|
if($settings->_defaultDocPosition == 'start')
|
||||||
$controller->setParam('sequence', $minmax['min'] - 1);
|
$controller->setParam('sequence', $minmax['min'] - $deviation);
|
||||||
else
|
else
|
||||||
$controller->setParam('sequence', $minmax['max'] + 1);
|
$controller->setParam('sequence', $minmax['max'] + $deviation);
|
||||||
$controller->setParam('reviewers', $reviewers);
|
$controller->setParam('reviewers', $reviewers);
|
||||||
$controller->setParam('approvers', $approvers);
|
$controller->setParam('approvers', $approvers);
|
||||||
$controller->setParam('reqversion', 1);
|
$controller->setParam('reqversion', 1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user