From 8ec990c703bbbef37886aad6dcdf3ae2ecb08fa4 Mon Sep 17 00:00:00 2001 From: Mike Hatfield Date: Tue, 26 Jan 2010 12:33:55 +0000 Subject: [PATCH] Merged V3.2 to HEAD 18207: Merged DEV/TEMPORARY to V3.2 17887: ETHREEOH-3853: FF 3.0: Exception after double click on 'Add button'. 18068: ETHREEOH-3623: Script Error on page "Web Form Details" 18097: ETHREEOH-3826: System Error occurs on "More Actions" page for a Space after "Edit Details" page for the same Space has been previously opened 18168: ETHREEOH-3789: Rule with simple workflow moves document to incorrect space 18238: Fix for ETHREEOH-4000 - WebScript extensions readme.ftl template fixed. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18298 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/templates/readme.ftl | 32 +++++++------------ .../compare/TextPropertyValueComparator.java | 2 +- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/config/alfresco/templates/readme.ftl b/config/alfresco/templates/readme.ftl index f2c5ae1fe0..2a43306eaa 100644 --- a/config/alfresco/templates/readme.ftl +++ b/config/alfresco/templates/readme.ftl @@ -1,32 +1,22 @@ <#-- Displays the contents of readme.html and/or the evaluated readme.ftl if they exist in the current space. --> -<#-- Old template -<#assign htmlFilename = "readme.html"/> -<#assign ftlFilename = "readme.ftl"/> - -<#if space?exists> - <#if space.childByNamePath["${htmlFilename}"]?exists> - ${space.childByNamePath[htmlFilename].content} - - <#if space.childByNamePath["${ftlFilename}"]?exists> - <#include space.childByNamePath["${ftlFilename}"].nodeRef> - - ---> <#assign filename = "readme"/> <#assign htmlExt = "html"/> <#assign suffix = .lang /> <#assign ftlExt = "ftl"/> -<#assign htmlFilename = "${filename}_${suffix}.${htmlExt}"/> +<#assign htmlLangFilename = "${filename}_${suffix}.${htmlExt}"/> +<#assign htmlFilename = "${filename}.${htmlExt}"/> <#assign ftlFilename = "${filename}.${ftlExt}"/> -<#assign messageError="File ${htmlFilename} does not exist!"/> +<#assign messageError="Readme file does not exist!"/> +<#assign found = false> <#if space?exists> - <#if space.childByNamePath["${htmlFilename}"]?exists> + <#if space.childByNamePath["${htmlLangFilename}"]?exists> + ${space.childByNamePath[htmlLangFilename].content} + <#elseif space.childByNamePath["${htmlFilename}"]?exists> ${space.childByNamePath[htmlFilename].content} - <#else> + <#elseif space.childByNamePath["${ftlFilename}"]?exists> + <#include space.childByNamePath["${ftlFilename}"].nodeRef> + <#else> ${messageError} - <#if space.childByNamePath["${ftlFilename}"]?exists> - <#include space.childByNamePath["${ftlFilename}"].nodeRef> - - + \ No newline at end of file diff --git a/source/java/org/alfresco/repo/action/evaluator/compare/TextPropertyValueComparator.java b/source/java/org/alfresco/repo/action/evaluator/compare/TextPropertyValueComparator.java index cf902e5a98..15ea2ed978 100644 --- a/source/java/org/alfresco/repo/action/evaluator/compare/TextPropertyValueComparator.java +++ b/source/java/org/alfresco/repo/action/evaluator/compare/TextPropertyValueComparator.java @@ -73,7 +73,7 @@ public class TextPropertyValueComparator implements PropertyValueComparator { // Remove the star and set the operation to startsWith operation = ComparePropertyValueOperation.BEGINS; - compareText = compareText.substring(0, (compareText.length()-2)); + compareText = compareText.substring(0, (compareText.length()-1)); } else {