Author: ludovic
Date: 2007-10-03 02:56:30 +0200 (Wed, 03 Oct 2007)
New Revision: 5219

Modified:
   xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
Log:
CURRIKI-998 direction block appears to remove assets/folders below it when 
looking at Collection in View

Modified: 
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
===================================================================
--- xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm   
2007-10-03 00:42:08 UTC (rev 5218)
+++ xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm   
2007-10-03 00:56:30 UTC (rev 5219)
@@ -1147,8 +1147,8 @@
  <hr >
    #else
     #set($embeddedDoc = $xwiki.getDocument($assetPage))
-    #set($objTxt = $!embeddedDoc.getObject("XWiki.TextAssetClass"))
-    #if("${objTxt.type}"=="2")
+    #set($type = $!embeddedDoc.getValue("type", 
$embeddedDoc.getObject("XWiki.TextAssetClass")))
+    #if("$type"=="2")
 ## We are not showing direction block assets
     #elseif(!$xwiki.hasAccessLevel("view", $context.user, $assetPage))
 ## We are not showing protected assets

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to