Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2020-09-22 10:24:19 +02:00
commit f0bdb0fda3
3 changed files with 7 additions and 1 deletions

View File

@ -178,9 +178,10 @@
- allow inline editing of document name - allow inline editing of document name
- import of users does not issue an error if a group column isn't set - import of users does not issue an error if a group column isn't set
- removing a document version will not remove attachments of the document anymore - removing a document version will not remove attachments of the document anymore
- make document details page like like view document page - make document details page look like view document page
- fix selection of documents/folders - fix selection of documents/folders
- new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews|prePreviousVersionsTab|preLatestVersionTab] - new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews|prePreviousVersionsTab|preLatestVersionTab]
- add expiration of documents in 3 years
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 5.1.19 Changes in version 5.1.19

View File

@ -68,6 +68,10 @@ case "2y":
$tmp = explode('-', date('Y-m-d')); $tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]+2); $expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]+2);
break; break;
case "3y":
$tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]+3);
break;
case "never": case "never":
default: default:
$expires = null; $expires = null;

View File

@ -74,6 +74,7 @@ $(document).ready( function() {
$options[] = array('1m', getMLText('expire_in_1m')); $options[] = array('1m', getMLText('expire_in_1m'));
$options[] = array('1y', getMLText('expire_in_1y')); $options[] = array('1y', getMLText('expire_in_1y'));
$options[] = array('2y', getMLText('expire_in_2y')); $options[] = array('2y', getMLText('expire_in_2y'));
$options[] = array('3y', getMLText('expire_in_3y'));
$this->formField( $this->formField(
getMLText("preset_expires"), getMLText("preset_expires"),
array( array(