mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
new config options for disallowing duplicate subfolder names
This commit is contained in:
parent
24a83e8f27
commit
b1a895fb27
|
@ -248,6 +248,7 @@
|
|||
- enableVersionDeletion: allow to delete versions after approval
|
||||
- enableVersionModification: allow to modify versions after approval
|
||||
- enableDuplicateDocNames: allow duplicate names in a folder
|
||||
- enableDuplicateSubFolderNames: allow duplicate names in a folder
|
||||
- enableOwnerRevApp: XXX
|
||||
- enableSelfRevApp: XXX
|
||||
- presetExpirationDate: XXX
|
||||
|
@ -260,6 +261,7 @@
|
|||
enableVersionDeletion = "true"
|
||||
enableVersionModification = "true"
|
||||
enableDuplicateDocNames = "true"
|
||||
enableDuplicateSubFolderNames = "true"
|
||||
enableOwnerRevApp = "false"
|
||||
enableSelfRevApp = "false"
|
||||
presetExpirationDate = ""
|
||||
|
|
|
@ -147,6 +147,8 @@ class Settings { /* {{{ */
|
|||
var $_enableVersionModification = false;
|
||||
// enable/disable duplicate names of a document in a folder
|
||||
var $_enableDuplicateDocNames = true;
|
||||
// enable/disable duplicate names of a subfolder in a folder
|
||||
var $_enableDuplicateSubFolderNames = true;
|
||||
// override mimetype set by browser when uploading a file
|
||||
var $_overrideMimeType = false;
|
||||
// enable/disable notification when added as a reviewer/approver
|
||||
|
@ -652,6 +654,7 @@ class Settings { /* {{{ */
|
|||
$this->_enableVersionDeletion = Settings::boolval($tab["enableVersionDeletion"]);
|
||||
$this->_enableVersionModification = Settings::boolval($tab["enableVersionModification"]);
|
||||
$this->_enableDuplicateDocNames = Settings::boolval($tab["enableDuplicateDocNames"]);
|
||||
$this->_enableDuplicateSubFolderNames = Settings::boolval($tab["enableDuplicateSubFolderNames"]);
|
||||
$this->_overrideMimeType = Settings::boolval($tab["overrideMimeType"]);
|
||||
$this->_removeFromDropFolder = Settings::boolval($tab["removeFromDropFolder"]);
|
||||
}
|
||||
|
@ -965,6 +968,7 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "enableVersionDeletion", $this->_enableVersionDeletion);
|
||||
$this->setXMLAttributValue($node, "enableVersionModification", $this->_enableVersionModification);
|
||||
$this->setXMLAttributValue($node, "enableDuplicateDocNames", $this->_enableDuplicateDocNames);
|
||||
$this->setXMLAttributValue($node, "enableDuplicateSubFolderNames", $this->_enableDuplicateSubFolderNames);
|
||||
$this->setXMLAttributValue($node, "overrideMimeType", $this->_overrideMimeType);
|
||||
$this->setXMLAttributValue($node, "removeFromDropFolder", $this->_removeFromDropFolder);
|
||||
|
||||
|
|
|
@ -186,6 +186,7 @@ if ($action == "saveSettings")
|
|||
$settings->_enableVersionDeletion = getBoolValue("enableVersionDeletion");
|
||||
$settings->_enableVersionModification = getBoolValue("enableVersionModification");
|
||||
$settings->_enableDuplicateDocNames = getBoolValue("enableDuplicateDocNames");
|
||||
$settings->_enableDuplicateSubFolderNames = getBoolValue("enableDuplicateSubFolderNames");
|
||||
$settings->_overrideMimeType = getBoolValue("overrideMimeType");
|
||||
$settings->_removeFromDropFolder = getBoolValue("removeFromDropFolder");
|
||||
|
||||
|
|
|
@ -430,6 +430,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
|
|||
<?php $this->showConfigCheckbox('settings_enableVersionDeletion', 'enableVersionDeletion'); ?>
|
||||
<?php $this->showConfigCheckbox('settings_enableVersionModification', 'enableVersionModification'); ?>
|
||||
<?php $this->showConfigCheckbox('settings_enableDuplicateDocNames', 'enableDuplicateDocNames'); ?>
|
||||
<?php $this->showConfigCheckbox('settings_enableDuplicateSubFolderNames', 'enableDuplicateSubFolderNames'); ?>
|
||||
<?php $this->showConfigCheckbox('settings_overrideMimeType', 'overrideMimeType'); ?>
|
||||
<?php $this->showConfigCheckbox('settings_removeFromDropFolder', 'removeFromDropFolder'); ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user