[jira] [Updated] (OFBIZ-7203) Empty Requirement Id and Product Id fields when generating pdf for Approved Product Requirements

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-7203) Empty Requirement Id and Product Id fields when generating pdf for Approved Product Requirements

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-7203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Lodhi updated OFBIZ-7203:
------------------------------
    Attachment: OFBIZ-7203_trunk.patch

I looked around this issue and found that the pdf is generating using list form. This contains hyperlink for Requirement Id and Product Id. The problem is in the "makeHyperlinkString" macro which is used to convert  hyperlink content for the pdf.

As this pdf is working fine with all the previous releases except trunk, so I explored around the functionality in 13.07 and found that the "makeHyperlinkString" in trunk is having <fo:block/> in place of <@makeBlock linkStyle description />

13.07 code
{code}
<#macro makeHyperlinkString linkStyle hiddenFormName event action imgSrc title alternate linkUrl targetWindow description confirmation><@makeBlock linkStyle description /></#macro>
{code}

trunk code
{code}
<#macro makeHyperlinkString linkStyle hiddenFormName event action imgSrc title targetParameters alternate linkUrl targetWindow description confirmation uniqueItemName="" height="" width="" id=""><fo:block/><!--link--></#macro>
{code}

After replacing the <fo:block/> with <@makeBlock linkStyle description /> the pdf is working fine.

Uploaded the patch with these changes for review.

> Empty Requirement Id and Product Id fields when generating pdf for Approved Product Requirements
> ------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-7203
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7203
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Trunk
>            Reporter: Ravi Lodhi
>            Assignee: Ravi Lodhi
>         Attachments: OFBIZ-7203_trunk.patch
>
>
> Steps to regenerate:
> 1) Go to Order -> Requirements -> Approved Product Requirements
> 2) Generate pdf (Systems should have some approved product requirements)
> 3) Pdf showing empty Requirement Id and Product Id fields.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)