Commit 3f0dd4c2a6b3b901a7710c1bd196685fe9e1323b

Authored by ikabot-com
1 parent 93d599ea

BBS-1059 / SUP-411

"On the 3.4.2 Version of KTTools, reason is mandatory field for each action, i would like to desactivate this."
Added new client policies for reasons.

Committed By: Isaac Lundall
Reviewed By: Conrad Vermeulen

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7589 c91229c3-7414-0410-bfa2-8a42b809f60b
config/config.ini
@@ -340,6 +340,13 @@ safemode = on @@ -340,6 +340,13 @@ safemode = on
340 ;document is added to knowledgetree via KTtools. They default to true. 340 ;document is added to knowledgetree via KTtools. They default to true.
341 explorerMetadataCapture = true 341 explorerMetadataCapture = true
342 officeMetadataCapture = true 342 officeMetadataCapture = true
  343 +;These settings govern whether reasons are asked for in KTtools
  344 +captureReasonsDelete = true
  345 +captureReasonsCheckin = true
  346 +captureReasonsCheckout = true
  347 +captureReasonsCancelCheckout = true
  348 +captureReasonsCopyInKT = true
  349 +captureReasonsMoveInKT = true
343 350
344 ; settings for the Disk Usage dashlet 351 ; settings for the Disk Usage dashlet
345 [DiskUsage] 352 [DiskUsage]
config/dmsDefaults.php
@@ -496,7 +496,12 @@ class KTInit { @@ -496,7 +496,12 @@ class KTInit {
496 496
497 $oKTConfig->setdefaultns('clientToolPolicies', 'explorerMetadataCapture', true); 497 $oKTConfig->setdefaultns('clientToolPolicies', 'explorerMetadataCapture', true);
498 $oKTConfig->setdefaultns('clientToolPolicies', 'officeMetadataCapture', true); 498 $oKTConfig->setdefaultns('clientToolPolicies', 'officeMetadataCapture', true);
499 - 499 + $oKTConfig->setdefaultns('clientToolPolicies', 'captureReasonsDelete', true);
  500 + $oKTConfig->setdefaultns('clientToolPolicies', 'captureReasonsCheckin', true);
  501 + $oKTConfig->setdefaultns('clientToolPolicies', 'captureReasonsCheckout', true);
  502 + $oKTConfig->setdefaultns('clientToolPolicies', 'captureReasonsCancelCheckout', true);
  503 + $oKTConfig->setdefaultns('clientToolPolicies', 'captureReasonsCopyInKT', true);
  504 + $oKTConfig->setdefaultns('clientToolPolicies', 'captureReasonsMoveInKT', true);
500 505
501 $res = $this->readConfig(); 506 $res = $this->readConfig();
502 if (PEAR::isError($res)) { return $res; } 507 if (PEAR::isError($res)) { return $res; }
ktwebservice/webservice.php
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 2
3 /** 3 /**
4 * 4 *
5 - * $Id:$ 5 + * $Id$
6 * 6 *
7 * This implements the KnowledgeTree Web Service in SOAP. 7 * This implements the KnowledgeTree Web Service in SOAP.
8 * 8 *
@@ -3306,6 +3306,36 @@ class KTWebService @@ -3306,6 +3306,36 @@ class KTWebService
3306 'value' => bool2str($config->get('clientToolPolicies/officeMetadataCapture')), 3306 'value' => bool2str($config->get('clientToolPolicies/officeMetadataCapture')),
3307 'type' => 'boolean' 3307 'type' => 'boolean'
3308 ), 3308 ),
  3309 + array(
  3310 + 'name' => 'capture_reasons_delete',
  3311 + 'value' => bool2str($config->get('clientToolPolicies/captureReasonsDelete')),
  3312 + 'type' => 'boolean'
  3313 + ),
  3314 + array(
  3315 + 'name' => 'capture_reasons_checkin',
  3316 + 'value' => bool2str($config->get('clientToolPolicies/captureReasonsCheckin')),
  3317 + 'type' => 'boolean'
  3318 + ),
  3319 + array(
  3320 + 'name' => 'capture_reasons_checkout',
  3321 + 'value' => bool2str($config->get('clientToolPolicies/captureReasonsCheckout')),
  3322 + 'type' => 'boolean'
  3323 + ),
  3324 + array(
  3325 + 'name' => 'capture_reasons_cancelcheckout',
  3326 + 'value' => bool2str($config->get('clientToolPolicies/captureReasonsCancelCheckout')),
  3327 + 'type' => 'boolean'
  3328 + ),
  3329 + array(
  3330 + 'name' => 'capture_reasons_copyinkt',
  3331 + 'value' => bool2str($config->get('clientToolPolicies/captureReasonsCopyInKT')),
  3332 + 'type' => 'boolean'
  3333 + ),
  3334 + array(
  3335 + 'name' => 'capture_reasons_moveinkt',
  3336 + 'value' => bool2str($config->get('clientToolPolicies/captureReasonsMoveInKT')),
  3337 + 'type' => 'boolean'
  3338 + ),
3309 ); 3339 );
3310 3340
3311 3341
lib/upgrades/UpgradeFunctions.inc.php
@@ -1005,6 +1005,12 @@ class UpgradeFunctions { @@ -1005,6 +1005,12 @@ class UpgradeFunctions {
1005 // clientToolPolicies Section 1005 // clientToolPolicies Section
1006 $ini->addItem('clientToolPolicies', 'explorerMetadataCapture', 'true', "These two settings control whether or not the client is prompted for metadata when a\r\n;document is added to knowledgetree via KTtools. They default to true."); 1006 $ini->addItem('clientToolPolicies', 'explorerMetadataCapture', 'true', "These two settings control whether or not the client is prompted for metadata when a\r\n;document is added to knowledgetree via KTtools. They default to true.");
1007 $ini->addItem('clientToolPolicies', 'officeMetadataCapture', 'true'); 1007 $ini->addItem('clientToolPolicies', 'officeMetadataCapture', 'true');
  1008 + $ini->addItem('clientToolPolicies', 'captureReasonsDelete', 'true', "These settings govern whether reasons are asked for in KTtools.");
  1009 + $ini->addItem('clientToolPolicies', 'captureReasonsCheckin', 'true');
  1010 + $ini->addItem('clientToolPolicies', 'captureReasonsCheckout', 'true');
  1011 + $ini->addItem('clientToolPolicies', 'captureReasonsCancelCheckout', 'true');
  1012 + $ini->addItem('clientToolPolicies', 'captureReasonsCopyInKT', 'true');
  1013 + $ini->addItem('clientToolPolicies', 'captureReasonsMoveInKT', 'true');
1008 1014
1009 // DiskUsage Section 1015 // DiskUsage Section
1010 $ini->addItem('DiskUsage', 'warningThreshold', '10', "When free space in a mount point is less than this percentage,\r\n; the disk usage dashlet will highlight the mount in ORANGE", "settings for the Disk Usage dashlet"); 1016 $ini->addItem('DiskUsage', 'warningThreshold', '10', "When free space in a mount point is less than this percentage,\r\n; the disk usage dashlet will highlight the mount in ORANGE", "settings for the Disk Usage dashlet");