|
Nicolas Malin created OFBIZ-5071:
------------------------------------ Summary: ProjectMgr : list project's company, error on form to resolve currency Key: OFBIZ-5071 URL: https://issues.apache.org/jira/browse/OFBIZ-5071 Project: OFBiz Issue Type: Bug Components: specialpurpose/projectmgr Affects Versions: SVN trunk, Release Branch 12.04 Reporter: Nicolas Malin Priority: Trivial When you to https://localhost:8443/projectmgr/control/projectView?projectId=9000 after ant load-demo, we have a error in log : [java] Error running bsh script [orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString("baseCurrencyUomId"):""]: javax.script.ScriptException: Sourced file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : Attempt to resolve method: getString() on undefined variable or class name: orgParty : at Line: 1 : in file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : orgParty .getString ( "baseCurrencyUomId" ) [java] in inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' at line number 1 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
[ https://issues.apache.org/jira/browse/OFBIZ-5071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Malin updated OFBIZ-5071: --------------------------------- Attachment: OFBIZ-5071.patch To solve this issue, I change bsh script to groovy script. After the patch application, on the same page, the currency appears near "Your Company Name Here [Company]" > ProjectMgr : list project's company, error on form to resolve currency > ---------------------------------------------------------------------- > > Key: OFBIZ-5071 > URL: https://issues.apache.org/jira/browse/OFBIZ-5071 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/projectmgr > Affects Versions: SVN trunk, Release Branch 12.04 > Reporter: Nicolas Malin > Priority: Trivial > Attachments: OFBIZ-5071.patch > > Original Estimate: 10m > Remaining Estimate: 10m > > When you to https://localhost:8443/projectmgr/control/projectView?projectId=9000 after ant load-demo, we have a error in log : > [java] Error running bsh script [orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString("baseCurrencyUomId"):""]: javax.script.ScriptException: Sourced file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : Attempt to resolve method: getString() on undefined variable or class name: orgParty : at Line: 1 : in file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : orgParty .getString ( "baseCurrencyUomId" ) > [java] in inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' at line number 1 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-5071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-5071. ---------------------------------- Resolution: Fixed Fix Version/s: Release Branch 12.04 SVN trunk Assignee: Jacques Le Roux Thanks Nicolas, Your (modified) patch is in trunk r1408408 R12.04 r1408410 Actually I did a bit more and rewrote it using safe-navigation and elvis operator, nice to read hèè ;) > ProjectMgr : list project's company, error on form to resolve currency > ---------------------------------------------------------------------- > > Key: OFBIZ-5071 > URL: https://issues.apache.org/jira/browse/OFBIZ-5071 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/projectmgr > Affects Versions: SVN trunk, Release Branch 12.04 > Reporter: Nicolas Malin > Assignee: Jacques Le Roux > Priority: Trivial > Fix For: SVN trunk, Release Branch 12.04 > > Attachments: OFBIZ-5071.patch > > Original Estimate: 10m > Remaining Estimate: 10m > > When you to https://localhost:8443/projectmgr/control/projectView?projectId=9000 after ant load-demo, we have a error in log : > [java] Error running bsh script [orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString("baseCurrencyUomId"):""]: javax.script.ScriptException: Sourced file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : Attempt to resolve method: getString() on undefined variable or class name: orgParty : at Line: 1 : in file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : orgParty .getString ( "baseCurrencyUomId" ) > [java] in inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' at line number 1 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-5071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495575#comment-13495575 ] Nicolas Malin commented on OFBIZ-5071: -------------------------------------- Ouah ! Quick fix and good correction enchancement. I discover elvis operator. Thanks for that jacques ! Nicolas > ProjectMgr : list project's company, error on form to resolve currency > ---------------------------------------------------------------------- > > Key: OFBIZ-5071 > URL: https://issues.apache.org/jira/browse/OFBIZ-5071 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/projectmgr > Affects Versions: SVN trunk, Release Branch 12.04 > Reporter: Nicolas Malin > Assignee: Jacques Le Roux > Priority: Trivial > Fix For: SVN trunk, Release Branch 12.04 > > Attachments: OFBIZ-5071.patch > > Original Estimate: 10m > Remaining Estimate: 10m > > When you to https://localhost:8443/projectmgr/control/projectView?projectId=9000 after ant load-demo, we have a error in log : > [java] Error running bsh script [orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString("baseCurrencyUomId"):""]: javax.script.ScriptException: Sourced file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : Attempt to resolve method: getString() on undefined variable or class name: orgParty : at Line: 1 : in file: inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' : orgParty .getString ( "baseCurrencyUomId" ) > [java] in inline evaluation of: ``orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString . . . '' at line number 1 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
| Free forum by Nabble | Edit this page |
