Commit 4903b2589962319d2e1a83e17d4bb8169f86a8c1
1 parent
1a034c0b
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/trunk@8429 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,6 +24,9 @@ class DocumentIndexAction extends KTDocumentAction | ||
| 24 | { | 24 | { |
| 25 | if (Permission::userIsSystemAdministrator() && $_SESSION['adminmode']) | 25 | if (Permission::userIsSystemAdministrator() && $_SESSION['adminmode']) |
| 26 | { | 26 | { |
| 27 | + if(!is_object($this->oDocument)){ | ||
| 28 | + return ''; | ||
| 29 | + } | ||
| 27 | if (Indexer::isDocumentScheduled($this->oDocument->getId())) | 30 | if (Indexer::isDocumentScheduled($this->oDocument->getId())) |
| 28 | { | 31 | { |
| 29 | return _kt('Unschedule Indexing'); | 32 | return _kt('Unschedule Indexing'); |