mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +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
|
||||
'version-attributes'), each attribute also contains the name
|
||||
- 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
|
||||
|
|
|
@ -829,10 +829,11 @@ switch($command) {
|
|||
$controller->setParam('filetype', $fileType);
|
||||
$controller->setParam('userfiletype', $userfiletype);
|
||||
$minmax = $folder->getDocumentsMinMax();
|
||||
$deviation = rand(10, 1000)/10;
|
||||
if($settings->_defaultDocPosition == 'start')
|
||||
$controller->setParam('sequence', $minmax['min'] - 1);
|
||||
$controller->setParam('sequence', $minmax['min'] - $deviation);
|
||||
else
|
||||
$controller->setParam('sequence', $minmax['max'] + 1);
|
||||
$controller->setParam('sequence', $minmax['max'] + $deviation);
|
||||
$controller->setParam('reviewers', $reviewers);
|
||||
$controller->setParam('approvers', $approvers);
|
||||
$controller->setParam('reqversion', 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user