From e4d68ed2f7204c53d7c38d7fb74f97f96b164150 Mon Sep 17 00:00:00 2001 From: Ashish Vijaywargiya Date: Sat, 16 Aug 2014 10:58:51 +0000 Subject: [PATCH] Applied the patch OFBIZ-4902_framework.patch from OFBIZ-4902 - Replace in Freemarker templates the deprecated built-ins: default, exists, if_exists. Thanks http://ofbiz.us team for providing the patch work. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618325 13f79535-47bb-0310-9956-ffa450edef68 --- .../reportbuilder/RenderStarSchemaReport.ftl | 4 +- framework/common/webcommon/error.fo.ftl | 8 +- framework/common/webcommon/forgotPassword.ftl | 2 +- .../webcommon/includes/ViewCertificate.ftl | 4 +- .../includes/ajaxAutocompleteOptions.ftl | 10 +-- .../common/webcommon/includes/countries.ftl | 2 +- .../webcommon/includes/fo/basic-header.fo.ftl | 2 +- .../common/webcommon/includes/genericLink.ftl | 10 +-- .../common/webcommon/includes/helplink.ftl | 2 +- .../webcommon/includes/insertDropDown.ftl | 12 +-- .../common/webcommon/includes/lookup.ftl | 2 +- .../common/webcommon/includes/messages.ftl | 10 +-- .../includes/setMultipleSelectJs.ftl | 10 +-- .../common/webcommon/includes/simple.fo.ftl | 8 +- .../common/webcommon/includes/simple.ftl | 2 +- .../common/webcommon/includes/states.ftl | 2 +- framework/common/webcommon/login.ftl | 8 +- .../webcommon/portal/listPortalPortlets.ftl | 2 +- .../common/webcommon/portal/showPortlet.ftl | 2 +- framework/common/webcommon/viewBlocked.ftl | 2 +- framework/webapp/config/url.properties | 4 +- .../webtools/artifactinfo/ArtifactInfo.ftl | 90 +++++++++---------- .../webapp/webtools/cert/viewbrowsercerts.ftl | 6 +- .../webapp/webtools/datafile/viewdatafile.ftl | 12 +-- .../webtools/entity/ConnectionPoolStatus.ftl | 22 ++--- .../webtools/entity/EntityExportAll.ftl | 2 +- .../webapp/webtools/entity/EntityImport.ftl | 16 ++-- .../webtools/entity/EntityImportDir.ftl | 14 +-- .../webtools/entity/EntityImportReaders.ftl | 10 +-- .../webapp/webtools/entity/EntityMaint.ftl | 4 +- .../webapp/webtools/entity/EntityRefList.ftl | 2 +- .../webtools/entity/EntitySQLProcessor.ftl | 6 +- .../webapp/webtools/entity/ListGeneric.ftl | 2 +- .../webapp/webtools/entity/xmldsdump.ftl | 8 +- .../webtools/labelmanager/SearchLabels.ftl | 14 +-- .../webtools/labelmanager/UpdateLabel.ftl | 26 +++--- .../webapp/webtools/labelmanager/ViewFile.ftl | 4 +- .../labelmanager/ViewHardcodedLabels.ftl | 2 +- .../webtools/labelmanager/ViewLabels.ftl | 38 ++++---- .../webtools/labelmanager/ViewReferences.ftl | 10 +-- framework/webtools/webapp/webtools/ping.ftl | 4 +- .../webtools/service/availableservices.ftl | 46 +++++----- .../webapp/webtools/service/serviceResult.ftl | 8 +- .../webtools/service/setServiceParameter.ftl | 2 +- .../service/setServiceParameterSync.ftl | 2 +- .../webapp/webtools/service/threads.ftl | 10 +-- .../webtools/tempexpr/tempExprMaint.ftl | 4 +- .../widget/templates/csvFormMacroLibrary.ftl | 2 +- .../templates/csvScreenMacroLibrary.ftl | 2 +- .../widget/templates/foFormMacroLibrary.ftl | 4 +- .../widget/templates/htmlFormMacroLibrary.ftl | 20 ++--- .../templates/htmlScreenMacroLibrary.ftl | 14 +-- .../widget/templates/textFormMacroLibrary.ftl | 2 +- .../templates/textScreenMacroLibrary.ftl | 2 +- .../widget/templates/xmlFormMacroLibrary.ftl | 2 +- 55 files changed, 260 insertions(+), 260 deletions(-) diff --git a/framework/bi/webapp/bi/reportbuilder/RenderStarSchemaReport.ftl b/framework/bi/webapp/bi/reportbuilder/RenderStarSchemaReport.ftl index f78e609534..b5882f7955 100644 --- a/framework/bi/webapp/bi/reportbuilder/RenderStarSchemaReport.ftl +++ b/framework/bi/webapp/bi/reportbuilder/RenderStarSchemaReport.ftl @@ -19,9 +19,9 @@ under the License. - <#assign firstRecord = records[0]?if_exists/> + <#assign firstRecord = records[0]!/> <#list columnNames as columnName> - class="align-text"> + class="align-text"> ${columnName} diff --git a/framework/common/webcommon/error.fo.ftl b/framework/common/webcommon/error.fo.ftl index db380b9e42..39a5f47400 100644 --- a/framework/common/webcommon/error.fo.ftl +++ b/framework/common/webcommon/error.fo.ftl @@ -54,7 +54,7 @@ under the License. - <#if logoImageUrl?exists> + <#if logoImageUrl??> @@ -71,7 +71,7 @@ under the License. ${uiLabelMap.CommonUsername} - <#if userLogin?exists>${userLogin.userLoginId?if_exists} + <#if userLogin??>${userLogin.userLoginId!} @@ -79,7 +79,7 @@ under the License. ${uiLabelMap.CommonDate} - ${nowTimestamp?if_exists} + ${nowTimestamp!} @@ -100,7 +100,7 @@ under the License. ${uiLabelMap.CommonFollowingErrorsOccurred}: - ${errorMessage?if_exists} + ${errorMessage!} diff --git a/framework/common/webcommon/forgotPassword.ftl b/framework/common/webcommon/forgotPassword.ftl index 47a8e30b92..7d10fb4e2f 100644 --- a/framework/common/webcommon/forgotPassword.ftl +++ b/framework/common/webcommon/forgotPassword.ftl @@ -23,7 +23,7 @@ under the License.

${uiLabelMap.CommonForgotYourPassword}?

-
+
diff --git a/framework/common/webcommon/includes/ViewCertificate.ftl b/framework/common/webcommon/includes/ViewCertificate.ftl index a5dbd1a583..ccad1aa37c 100644 --- a/framework/common/webcommon/includes/ViewCertificate.ftl +++ b/framework/common/webcommon/includes/ViewCertificate.ftl @@ -17,7 +17,7 @@ specific language governing permissions and limitations under the License. --> -<#assign components = Static["org.ofbiz.base.component.ComponentConfig"].getAllComponents()?if_exists/> +<#assign components = Static["org.ofbiz.base.component.ComponentConfig"].getAllComponents()!/> <#if (requestParameters.certString?has_content)> <#assign cert = Static["org.ofbiz.base.util.KeyStoreUtil"].pemToCert(requestParameters.certString)/> @@ -49,7 +49,7 @@ under the License. <#list components as component> - <#assign keystores = component.getKeystoreInfos()?if_exists/> + <#assign keystores = component.getKeystoreInfos()!/> <#list keystores as store> <#if (store.isTrustStore())> diff --git a/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl b/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl index 859683ebb2..98fc752d3c 100644 --- a/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl +++ b/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl @@ -16,12 +16,12 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> -<#if description?exists> - <#if autocompleteOptions?exists> +<#if description??> + <#if autocompleteOptions??> <#list autocompleteOptions as autocompleteOption> <#assign displayString = ""/> <#list displayFieldsSet as key> - <#assign field = autocompleteOption.get(key)?if_exists> + <#assign field = autocompleteOption.get(key)!> <#if field?has_content> <#if (key != context.returnField)> <#assign displayString = displayString + field + " "> @@ -35,7 +35,7 @@ under the License.
${uiLabelMap.CommonUsername}