You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2013/03/28 20:02:18 UTC
svn commit: r1462264 -
/ofbiz/branches/release10.04/framework/widget/templates/foScreenMacroLibrary.ftl
Author: ashish
Date: Thu Mar 28 19:02:18 2013
New Revision: 1462264
URL: http://svn.apache.org/r1462264
Log:
Applied bug fix from trunk r1462257.
Applied bug fix from jira issue - OFBIZ-5165 - Broken renderLabel functionality of screenfop view handler.
If we use label inside widget tag then renderLabel macro skip the label rendering due to wrong condition check.
-- Corrected the conditions for label rendering.
-- Also replaced fo:inline with fo:block as fo:inline can't render directly.
Thanks Deepak.
Modified:
ofbiz/branches/release10.04/framework/widget/templates/foScreenMacroLibrary.ftl
Modified: ofbiz/branches/release10.04/framework/widget/templates/foScreenMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release10.04/framework/widget/templates/foScreenMacroLibrary.ftl?rev=1462264&r1=1462263&r2=1462264&view=diff
==============================================================================
--- ofbiz/branches/release10.04/framework/widget/templates/foScreenMacroLibrary.ftl (original)
+++ ofbiz/branches/release10.04/framework/widget/templates/foScreenMacroLibrary.ftl Thu Mar 28 19:02:18 2013
@@ -57,7 +57,7 @@ under the License.
<#macro renderSubContentEnd urlString editMode editContainerStyle editRequest enableEditValue></#macro>
<#macro renderHorizontalSeparator id style><fo:block><fo:leader leader-length="100%" leader-pattern="rule" rule-style="solid" rule-thickness="0.1mm" color="black"/></fo:block></#macro>
-<#macro renderLabel text id style><#if text?exists><#if style?has_content><fo:inline <@getFoStyle style/>></#if>${text}<#if style?has_content></fo:inline></#if></#if></#macro>
+<#macro renderLabel text id style><#if text?has_content><fo:block <#if style?has_content><@getFoStyle style/></#if>>${text}</fo:block></#if></#macro>
<#macro renderLink></#macro>
<#macro renderImage></#macro>