Commit ec46215e2d6cc8a860c97f071532d57e52a4197f
1 parent
4dc4455c
Comment out collaboration-related stuff - will need to look at how this
interacts with workflow at some point. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3984 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
plugins/ktcore/KTDocumentActions.php
| @@ -122,11 +122,13 @@ class KTDocumentArchiveAction extends KTBuiltInDocumentAction { | @@ -122,11 +122,13 @@ class KTDocumentArchiveAction extends KTBuiltInDocumentAction { | ||
| 122 | var $sName = 'ktcore.actions.document.archive'; | 122 | var $sName = 'ktcore.actions.document.archive'; |
| 123 | 123 | ||
| 124 | function _disable() { | 124 | function _disable() { |
| 125 | + /* | ||
| 125 | if ($this->oDocument->hasCollaboration() && | 126 | if ($this->oDocument->hasCollaboration() && |
| 126 | DocumentCollaboration::documentCollaborationStarted($this->oDocument->getID()) && | 127 | DocumentCollaboration::documentCollaborationStarted($this->oDocument->getID()) && |
| 127 | !DocumentCollaboration::documentCollaborationDone($this->oDocument->getID())) { | 128 | !DocumentCollaboration::documentCollaborationDone($this->oDocument->getID())) { |
| 128 | $sDisabledText = _("This document is in collaboration and cannot be archived"); | 129 | $sDisabledText = _("This document is in collaboration and cannot be archived"); |
| 129 | } | 130 | } |
| 131 | + */ | ||
| 130 | 132 | ||
| 131 | if ($this->oDocument->getIsCheckedOut()) { | 133 | if ($this->oDocument->getIsCheckedOut()) { |
| 132 | $this->_sDisabledText = _("This document is checked out and cannot be archived."); | 134 | $this->_sDisabledText = _("This document is checked out and cannot be archived."); |
| @@ -156,6 +158,7 @@ class KTDocumentPublishAction extends KTDocumentAction { | @@ -156,6 +158,7 @@ class KTDocumentPublishAction extends KTDocumentAction { | ||
| 156 | $this->_sDisabledText = _("This document is checked out and cannot be archived."); | 158 | $this->_sDisabledText = _("This document is checked out and cannot be archived."); |
| 157 | return true; | 159 | return true; |
| 158 | } | 160 | } |
| 161 | + /* | ||
| 159 | if (DocumentCollaboration::documentIsPublished($oDocument->getID())) { | 162 | if (DocumentCollaboration::documentIsPublished($oDocument->getID())) { |
| 160 | $this->_sDisabledText = _("This document is already published."); | 163 | $this->_sDisabledText = _("This document is already published."); |
| 161 | return true; | 164 | return true; |
| @@ -170,6 +173,7 @@ class KTDocumentPublishAction extends KTDocumentAction { | @@ -170,6 +173,7 @@ class KTDocumentPublishAction extends KTDocumentAction { | ||
| 170 | return true; | 173 | return true; |
| 171 | } | 174 | } |
| 172 | } | 175 | } |
| 176 | + */ | ||
| 173 | return parent::_disable(); | 177 | return parent::_disable(); |
| 174 | } | 178 | } |
| 175 | 179 |