Commit e4b1a6232b1ab8d417927f38325d187759937393
1 parent
2e2ba6d2
KTS-732: Don't show users the "System" option for fieldsets.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5201 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
14 deletions
plugins/ktcore/admin/documentFields.php
| ... | ... | @@ -57,9 +57,6 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { |
| 57 | 57 | $createFields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name, used in add and edit forms.'), 'name', null, $this->oPage, true); |
| 58 | 58 | $createFields[] = new KTTextWidget(_kt('Description'), _kt('A brief description of the information stored in this fieldset.'), 'description', null, $this->oPage, true); |
| 59 | 59 | $createFields[] = new KTCheckboxWidget(_kt('Generic'), _kt('A generic fieldset is one that is available for every document by default. These fieldsets will be available for users to edit and add for every document in the document management system.'), 'generic', false, $this->oPage, false); |
| 60 | - $createFields[] = new KTCheckboxWidget(_kt('System'), | |
| 61 | - _kt('A system fieldset is one that is never displayed to a user, and is used only by the document management system.'), 'system', false, $this->oPage, false); | |
| 62 | - | |
| 63 | 60 | |
| 64 | 61 | $oTemplating =& KTTemplating::getSingleton(); |
| 65 | 62 | $oTemplate =& $oTemplating->loadTemplate('ktcore/metadata/listFieldsets'); |
| ... | ... | @@ -157,16 +154,6 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { |
| 157 | 154 | $bIsGeneric = true; |
| 158 | 155 | } |
| 159 | 156 | |
| 160 | - if (KTUtil::arrayGet($_REQUEST, 'system')) { | |
| 161 | - $bIsSystem = true; | |
| 162 | - // Can't be a system fieldset and a generic fieldset... | |
| 163 | - if ($bIsGeneric) { | |
| 164 | - $bIsGeneric = false; | |
| 165 | - $this->addInfoMessage(_kt('System fieldsets cannot be generic. Generic flag removed.')); | |
| 166 | - } | |
| 167 | - | |
| 168 | - } | |
| 169 | - | |
| 170 | 157 | // basic validation |
| 171 | 158 | $aErrorOptions['empty_message'] = _kt("No name was given for the fieldset"); |
| 172 | 159 | $aErrorOptions['duplicate_message'] = _kt("A fieldset with that name already exists"); |
| ... | ... | @@ -188,7 +175,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { |
| 188 | 175 | 'mandatory' => false, |
| 189 | 176 | 'isconditional' => false, |
| 190 | 177 | 'isgeneric' => $bIsGeneric, |
| 191 | - 'issystem' => $bIsSystem, | |
| 178 | + 'issystem' => false, | |
| 192 | 179 | )); |
| 193 | 180 | if (PEAR::isError($res) || ($res === false)) { |
| 194 | 181 | $this->errorRedirectToMain('Could not create fieldset'); | ... | ... |