On 01/29/2010 04:41 PM, vmassol (SVN) wrote:
Author: vmassol
Date: 2010-01-29 16:41:25 +0100 (Fri, 29 Jan 2010)
New Revision: 26548
Modified:
platform/skins/trunk/colibri/src/main/resources/colibri/menuview.vm
Log:
XSCOLIBRI-188: Don't show the create page from office document menu entry if the
office importer application isn't installed
Modified: platform/skins/trunk/colibri/src/main/resources/colibri/menuview.vm
===================================================================
--- platform/skins/trunk/colibri/src/main/resources/colibri/menuview.vm 2010-01-29
15:12:03 UTC (rev 26547)
+++ platform/skins/trunk/colibri/src/main/resources/colibri/menuview.vm 2010-01-29
15:41:25 UTC (rev 26548)
This will fail if the document exists, but the user does not have access
to it.
$officeImporterMainDocument is null, so
$officeImporterMainDocument.isNew() is undefined, so !undefined is true.
+ #set($officeImporterMainDocument =
$xwiki.getDocument('XWiki.OfficeImporter'))
+ #if (!$officeImporterMainDocument.isNew())
Try:
#if("$!{officeImporterMainDocument.isNew()}" == 'false')
--
Sergiu Dumitriu
http://purl.org/net/sergiu/