Commit 2e219654b1825626063bb2804a68c77e500af6f5
1 parent
76a9317f
Merged in from DEV trunk...
KTS-3338 "CLONE -Failure in Workflow(SUP-805)" Fixed. The getDisplayName() function was expecting a document object to exist. Committed by: Megan Watson Reviewed by: Jonathan Byrne git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.2c-Release-Branch@8477 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
0 deletions
plugins/search2/DocumentIndexAction.php
| ... | ... | @@ -24,6 +24,9 @@ class DocumentIndexAction extends KTDocumentAction |
| 24 | 24 | { |
| 25 | 25 | if (Permission::userIsSystemAdministrator() && $_SESSION['adminmode']) |
| 26 | 26 | { |
| 27 | + if(!is_object($this->oDocument)){ | |
| 28 | + return ''; | |
| 29 | + } | |
| 27 | 30 | if (Indexer::isDocumentScheduled($this->oDocument->getId())) |
| 28 | 31 | { |
| 29 | 32 | return _kt('Unschedule Indexing'); | ... | ... |