[jira] [Comment Edited] (OFBIZ-7929) Scrum find Total Backlog Item is not working in non-English language

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

[jira] [Comment Edited] (OFBIZ-7929) Scrum find Total Backlog Item is not working in non-English language

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392989#comment-15392989 ]

Scott Gray edited comment on OFBIZ-7929 at 7/26/16 1:27 AM:
------------------------------------------------------------

A couple of minor points:
1. It isn't necessary to use UtilValidate.isEmpty() in groovy for String values, you can simply use: if (parameters.custRequestTypeId).  Google "Groovy Truth" for more info
2. I notice there are actually 4 instances of {code}<option key="${uiLabelMap.CommonAny}" description=" "/>{code} in the file, but only two have been fixed.


was (Author: lektran):
A couple of minor points:
1. It isn't necessary to use UtilValidate.isEmpty() in groovy for String values, you can simply use: if (parameters.custRequestTypeId).  Google "Groovy Truth" for more info
2. I notice there are actually 4 instances of <option key="${uiLabelMap.CommonAny}" description=" "/> in the file, but only two have been fixed.

> Scrum find Total Backlog Item is not working in non-English language
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-7929
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7929
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/scrum
>    Affects Versions: Trunk
>            Reporter: Montalbano Florian
>            Assignee: Jacques Le Roux
>              Labels: backlog, find, item, scrum
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-7929.patch, OFBIZ-7929.patch
>
>
> The Find form for Product Backlog Item does not work in language other than English when no "statusId" or "custRequestTypeId" are selected.
> Step to reproduce :
> - Go to the Scrum component and select a product
> - Go to the "Total Backlog" tab
> or use this linl : https://localhost:8443/scrum/control/ViewTotalBacklog?productId=DEMO-PRODUCT-1
> - Hit the search button, the find action is performed and return a non-empty list.
> - Set your language preference to a non english language (french for example).
> - Click again on the "Total Backlog" tab, and hit the  "Rechercher" button.
> - No results are found.
> Where does the problem come from ?
> The results displayed are from a list named "backlogList" which is built in the following script : FindProductBacklogItem.groovy .
> In this script, there were a check on the parameter "custRequestTypeId" and on the parameter "statusId".
> But the value was hardcoded :
> {code}
> if("Any".equals(parameters.custRequestTypeId))
> {code}
> and
> {code}
> if(!"Any".equals(parameters.statusId))
> {code}
> Obviously, when the form is in another language than english, those conditions aren't valid anymore (for exemple, "Any" is "Dont" in French")



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