Skip to content

Commit

Permalink
Reverted:: Getting error while generating ApprovedProductRequirements…
Browse files Browse the repository at this point in the history
…Report PDF (OFBIZ-11845)

Integration tests don't pass. Here is the error:
Recoverable error on line 145 column 98
  SXCH0003: org.apache.fop.fo.ValidationException: null:145:98: "fo:table-body"
  is not a   valid child of "fo:table-body"! (See position 145:98)

The initial "fixed" error is:
org.apache.fop.fo.ValidationException: null:88:232: "fo:table-row" is not a
valid child of "fo:table"! (See position 88:232)

Another error exists at ApprovedProductRequirementsByVendorReport:
org.apache.fop.fo.ValidationException: null:95:2: "fo:table-cell" is not a valid
child of "fo:table-cell"! (See position 95:2)

For now I'm not quite even sure how you get to
ApprovedProductRequirementsReport
When you approve a requirement it does not show at
ordermgr/control/ApprovedProductRequirements

I thought the error could be due to a missing requirementId. But using
ordermgr/control/ApprovedProductRequirementsReport?requirementId=10000
you get the same error.

It seems related to OFBIZ-6354, but could be rather an issue with
ApprovedProductRequirements screen where
<set field="genericLinkTarget" value="ApprovedProductRequirementsReport"/>
is set

Same for ApprovedProductRequirementsByVendorReport

I did not get further for now
  • Loading branch information
JacquesLeRoux committed Dec 13, 2024
1 parent e6bcec2 commit 80f61f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/common-theme/template/macro/FoFormMacroLibrary.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ under the License.
<#macro renderMultiFormClose></#macro>

<#macro renderFormatListWrapperOpen formName style columnStyles><fo:table table-layout="fixed" border="solid black" <@getFoStyle style/>><#list columnStyles as columnStyle><fo:table-column<#if columnStyle?has_content> <@getFoStyle columnStyle/></#if>/></#list></#macro>
<#macro renderFormatListWrapperClose formName><fo:table-body><fo:table-row><fo:table-cell><fo:block/></fo:table-cell></fo:table-row></fo:table-body></fo:table></#macro>
<#macro renderFormatListWrapperClose formName><fo:table-row><fo:table-cell><fo:block/></fo:table-cell></fo:table-row></fo:table-body></fo:table></#macro>

<#macro renderFormatHeaderOpen><fo:table-header></#macro>
<#macro renderFormatHeaderClose></fo:table-header><fo:table-body></#macro>
Expand Down

0 comments on commit 80f61f1

Please sign in to comment.