Commit 86b3787d34339c92a0028c4e94fcd3e7cb2d124c
1 parent
ec0fc467
KTS-179, KTS-199
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4653 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
6 additions
and
0 deletions
edit.php
| @@ -142,6 +142,8 @@ class KTEditDocumentDispatcher extends KTStandardDispatcher { | @@ -142,6 +142,8 @@ class KTEditDocumentDispatcher extends KTStandardDispatcher { | ||
| 142 | 142 | ||
| 143 | // "standard document editing" | 143 | // "standard document editing" |
| 144 | function do_main($newType=false) { | 144 | function do_main($newType=false) { |
| 145 | + $this->oPage->setBreadcrumbDetails("edit"); | ||
| 146 | + | ||
| 145 | $document_id = KTUtil::arrayGet($_REQUEST, 'fDocumentId'); | 147 | $document_id = KTUtil::arrayGet($_REQUEST, 'fDocumentId'); |
| 146 | if (empty($document_id)) { | 148 | if (empty($document_id)) { |
| 147 | $this->errorPage(_("No document specified for editing.")); | 149 | $this->errorPage(_("No document specified for editing.")); |
plugins/ktcore/KTPermissions.php
| @@ -22,6 +22,8 @@ class KTDocumentPermissionsAction extends KTDocumentAction { | @@ -22,6 +22,8 @@ class KTDocumentPermissionsAction extends KTDocumentAction { | ||
| 22 | var $sName = 'ktcore.actions.document.permissions'; | 22 | var $sName = 'ktcore.actions.document.permissions'; |
| 23 | 23 | ||
| 24 | function do_main() { | 24 | function do_main() { |
| 25 | + $this->oPage->setBreadcrumbDetails("permissions"); | ||
| 26 | + | ||
| 25 | $oTemplate = $this->oValidator->validateTemplate("ktcore/document/document_permissions"); | 27 | $oTemplate = $this->oValidator->validateTemplate("ktcore/document/document_permissions"); |
| 26 | $oPO = KTPermissionObject::get($this->oDocument->getPermissionObjectID()); | 28 | $oPO = KTPermissionObject::get($this->oDocument->getPermissionObjectID()); |
| 27 | $aPermissions = KTPermission::getList(); | 29 | $aPermissions = KTPermission::getList(); |
plugins/ktcore/admin/documentTypes.php
| @@ -111,7 +111,9 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { | @@ -111,7 +111,9 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { | ||
| 111 | 111 | ||
| 112 | $sName = $this->oValidator->validateEntityName('DocumentType', 'document type', $_REQUEST['name'], $aErrorOptions); | 112 | $sName = $this->oValidator->validateEntityName('DocumentType', 'document type', $_REQUEST['name'], $aErrorOptions); |
| 113 | 113 | ||
| 114 | + $oDocumentType->setName($sName); | ||
| 114 | $res = $oDocumentType->update(); | 115 | $res = $oDocumentType->update(); |
| 116 | + | ||
| 115 | if (PEAR::isError($res) || ($res === false)) { | 117 | if (PEAR::isError($res) || ($res === false)) { |
| 116 | $this->errorRedirectTo('edit', _('Could not save document type changes'), 'fDocumentTypeId=' . $oDocumentType->getId()); | 118 | $this->errorRedirectTo('edit', _('Could not save document type changes'), 'fDocumentTypeId=' . $oDocumentType->getId()); |
| 117 | exit(0); | 119 | exit(0); |