Author: jleroux
Date: Wed Oct 30 17:13:41 2013
New Revision: 1537181
URL:
http://svn.apache.org/r1537181Log:
"Applied fix from trunk for revision: 1537179 "
------------------------------------------------------------------------
r1537179 | jleroux | 2013-10-30 18:11:21 +0100 (mer. 30 oct. 2013) | 5 lignes
A patch from Christian Carlow for "Wrap error messages in StringUtil.wrapString() for framework/common/webcommon/includes/messages.ftl"
https://issues.apache.org/jira/browse/OFBIZ-5376Without wrapping error messages in StringUtil.wrapString() the <br/> element appears part of the error message.
------------------------------------------------------------------------
Modified:
ofbiz/branches/release11.04/ (props changed)
ofbiz/branches/release11.04/framework/common/webcommon/includes/messages.ftl
Propchange: ofbiz/branches/release11.04/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1537179
Modified: ofbiz/branches/release11.04/framework/common/webcommon/includes/messages.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release11.04/framework/common/webcommon/includes/messages.ftl?rev=1537181&r1=1537180&r2=1537181&view=diff==============================================================================
--- ofbiz/branches/release11.04/framework/common/webcommon/includes/messages.ftl (original)
+++ ofbiz/branches/release11.04/framework/common/webcommon/includes/messages.ftl Wed Oct 30 17:13:41 2013
@@ -40,26 +40,25 @@ under the License.
<div id="content-messages" class="content-messages errorMessage" onclick="document.getElementById('content-messages').parentNode.removeChild(this)">
<p>${uiLabelMap.CommonFollowingErrorsOccurred}:</p>
<#if errorMessage?has_content>
- <p>${errorMessage}</p>
+ <p>${StringUtil.wrapString(errorMessage)}</p>
</#if>
<#if errorMessageList?has_content>
<#list errorMessageList as errorMsg>
- <p>${errorMsg}</p>
+ <p>${StringUtil.wrapString(errorMsg)}</p>
</#list>
</#if>
</div>
</#if>
-
<#-- display the event messages -->
<#if (eventMessage?has_content || eventMessageList?has_content)>
<div id="content-messages" class="content-messages eventMessage" onclick="document.getElementById('content-messages').parentNode.removeChild(this)">
<p>${uiLabelMap.CommonFollowingOccurred}:</p>
<#if eventMessage?has_content>
- <p>${eventMessage}</p>
+ <p>${StringUtil.wrapString(eventMessage)}</p>
</#if>
<#if eventMessageList?has_content>
<#list eventMessageList as eventMsg>
- <p>${eventMsg}</p>
+ <p>${StringUtil.wrapString(eventMsg)}</p>
</#list>
</#if>
</div>