Commit b31ad507ec91103bf89d789ea55c0671b09f6708
1 parent
ecd5b93c
fix for browseable folder id-bug.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5029 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
4 additions
and
3 deletions
lib/permissions/permissionutil.inc.php
| @@ -224,6 +224,7 @@ class KTPermissionUtil { | @@ -224,6 +224,7 @@ class KTPermissionUtil { | ||
| 224 | } | 224 | } |
| 225 | } | 225 | } |
| 226 | } | 226 | } |
| 227 | + | ||
| 227 | $oChannel =& KTPermissionChannel::getSingleton(); | 228 | $oChannel =& KTPermissionChannel::getSingleton(); |
| 228 | if (is_a($oFolderOrDocument, 'Folder')) { | 229 | if (is_a($oFolderOrDocument, 'Folder')) { |
| 229 | $msg = sprintf("Updating folder %s", join("/", $oFolderOrDocument->getPathArray())); | 230 | $msg = sprintf("Updating folder %s", join("/", $oFolderOrDocument->getPathArray())); |
| @@ -235,7 +236,7 @@ class KTPermissionUtil { | @@ -235,7 +236,7 @@ class KTPermissionUtil { | ||
| 235 | } | 236 | } |
| 236 | } | 237 | } |
| 237 | $oChannel->sendMessage(new KTPermissionGenericMessage($msg)); | 238 | $oChannel->sendMessage(new KTPermissionGenericMessage($msg)); |
| 238 | - | 239 | + //var_dump($msg); |
| 239 | $iPermissionObjectId = $oFolderOrDocument->getPermissionObjectID(); | 240 | $iPermissionObjectId = $oFolderOrDocument->getPermissionObjectID(); |
| 240 | if (empty($iPermissionObjectId)) { | 241 | if (empty($iPermissionObjectId)) { |
| 241 | return; | 242 | return; |
plugins/browseabledashlet/templates/browseabledashlet/dashlet.smarty
| @@ -18,8 +18,8 @@ and they are are listed below.{/i18n}</p> | @@ -18,8 +18,8 @@ and they are are listed below.{/i18n}</p> | ||
| 18 | <tbody> | 18 | <tbody> |
| 19 | {foreach from=$folders item=oFolder} | 19 | {foreach from=$folders item=oFolder} |
| 20 | <tr class="browse_column {cycle values=odd,even}"><td><span | 20 | <tr class="browse_column {cycle values=odd,even}"><td><span |
| 21 | - class="contenttype folder"><a | ||
| 22 | - href="{ktLink base="browse.php" query="fFolderId=`$oFolder->getId()`"}">{$oFolder->getName()}</a> </span> | 21 | + class="contenttype folder"><a {capture assign=fid}{$oFolder->getId()}{/capture} |
| 22 | + href="{ktLink base="browse.php" query="fFolderId=`$fid`"}">{$oFolder->getName()}</a> </span> | ||
| 23 | </td></tr> | 23 | </td></tr> |
| 24 | {/foreach} | 24 | {/foreach} |
| 25 | </tbody> | 25 | </tbody> |