Commit 98de76f4129337e3bb515b06c0d448af3cd78f34
1 parent
8440c5c8
KTC-262
"Action Restriction section of a work flow there are extra two extra columns as well as one that says "no name" after you select "Edit Action"" Fixed. Added a check to display name using getName() in case getDisplayName() returns an empty string. Committed By: Jonathan Byrne Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8132 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
12 additions
and
1 deletions
plugins/search2/DocumentIndexAction.php
| ... | ... | @@ -15,6 +15,11 @@ class DocumentIndexAction extends KTDocumentAction |
| 15 | 15 | $this->sDisplayName=_kt('Schedule Indexing'); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | + function getName() | |
| 19 | + { | |
| 20 | + return _kt('Document Indexer'); | |
| 21 | + } | |
| 22 | + | |
| 18 | 23 | function getDisplayName() |
| 19 | 24 | { |
| 20 | 25 | if (Permission::userIsSystemAdministrator() && $_SESSION['adminmode']) | ... | ... |
templates/ktcore/workflow/admin/actions_edit.smarty
| ... | ... | @@ -14,7 +14,13 @@ |
| 14 | 14 | <thead> |
| 15 | 15 | <th>{i18n}State{/i18n}</th> |
| 16 | 16 | {foreach from=$actions item=oAction} |
| 17 | - <th>{$oAction->getDisplayName()}</th> | |
| 17 | + <th> | |
| 18 | + {if $oAction->getDisplayName() != ''} | |
| 19 | + {$oAction->getDisplayName()} | |
| 20 | + {else} | |
| 21 | + {$oAction->getName()} | |
| 22 | + {/if} | |
| 23 | + </th> | |
| 18 | 24 | {/foreach} |
| 19 | 25 | </thead> |
| 20 | 26 | ... | ... |