ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Lodhi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OFBIZ-7203) Empty Requirement Id and Product Id fields when generating pdf for Approved Product Requirements
Date Tue, 07 Jun 2016 07:51:21 GMT

     [ 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)

Mime
View raw message