Commit 7a03d3fd524b1b020835821d2fa16542e3e3d4c8
1 parent
1f909a41
KTS-1510
"Orphaned folder dashlet not displaying correctly on dashboard" Fixed to use new Dashlet code git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6120 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
6 additions
and
7 deletions
plugins/browseabledashlet/BrowseableDashlet.php
| @@ -28,7 +28,12 @@ require_once(KT_LIB_DIR . '/browse/browseutil.inc.php'); | @@ -28,7 +28,12 @@ require_once(KT_LIB_DIR . '/browse/browseutil.inc.php'); | ||
| 28 | 28 | ||
| 29 | class BrowseableFolderDashlet extends KTBaseDashlet { | 29 | class BrowseableFolderDashlet extends KTBaseDashlet { |
| 30 | var $oUser; | 30 | var $oUser; |
| 31 | - | 31 | + var $sClass = "ktInfo"; |
| 32 | + | ||
| 33 | + function BrowseableFolderDashlet() { | ||
| 34 | + $this->sTitle = _kt('Orphaned Folders'); | ||
| 35 | + } | ||
| 36 | + | ||
| 32 | function is_active($oUser) { | 37 | function is_active($oUser) { |
| 33 | $this->oUser = $oUser; | 38 | $this->oUser = $oUser; |
| 34 | 39 | ||
| @@ -45,10 +50,6 @@ class BrowseableFolderDashlet extends KTBaseDashlet { | @@ -45,10 +50,6 @@ class BrowseableFolderDashlet extends KTBaseDashlet { | ||
| 45 | $aFolders = array(); | 50 | $aFolders = array(); |
| 46 | } | 51 | } |
| 47 | 52 | ||
| 48 | - if (empty($aFolders)) { | ||
| 49 | - return; | ||
| 50 | - } | ||
| 51 | - | ||
| 52 | $aTemplateData = array( | 53 | $aTemplateData = array( |
| 53 | 'folders' => $aFolders, | 54 | 'folders' => $aFolders, |
| 54 | ); | 55 | ); |
plugins/browseabledashlet/templates/browseabledashlet/dashlet.smarty
| 1 | -<h2>{i18n}Orphaned Folders{/i18n}</h2> | ||
| 2 | - | ||
| 3 | <p class="descriptiveText">{i18n}Since KnowledgeTree only shows you the folders and | 1 | <p class="descriptiveText">{i18n}Since KnowledgeTree only shows you the folders and |
| 4 | documents you are allowed to see, there are some placed that you can view | 2 | documents you are allowed to see, there are some placed that you can view |
| 5 | but can't get to — for example, if they are in a folder you are not | 3 | but can't get to — for example, if they are in a folder you are not |