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 | 224 | } |
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | + | |
| 227 | 228 | $oChannel =& KTPermissionChannel::getSingleton(); |
| 228 | 229 | if (is_a($oFolderOrDocument, 'Folder')) { |
| 229 | 230 | $msg = sprintf("Updating folder %s", join("/", $oFolderOrDocument->getPathArray())); |
| ... | ... | @@ -235,7 +236,7 @@ class KTPermissionUtil { |
| 235 | 236 | } |
| 236 | 237 | } |
| 237 | 238 | $oChannel->sendMessage(new KTPermissionGenericMessage($msg)); |
| 238 | - | |
| 239 | + //var_dump($msg); | |
| 239 | 240 | $iPermissionObjectId = $oFolderOrDocument->getPermissionObjectID(); |
| 240 | 241 | if (empty($iPermissionObjectId)) { |
| 241 | 242 | return; | ... | ... |
plugins/browseabledashlet/templates/browseabledashlet/dashlet.smarty
| ... | ... | @@ -18,8 +18,8 @@ and they are are listed below.{/i18n}</p> |
| 18 | 18 | <tbody> |
| 19 | 19 | {foreach from=$folders item=oFolder} |
| 20 | 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 | 23 | </td></tr> |
| 24 | 24 | {/foreach} |
| 25 | 25 | </tbody> | ... | ... |