[jira] [Comment Edited] (OFBIZ-2954) Service to get the party postal address

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-2954) Service to get the party postal address

Nicolas Malin (Jira)

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

Priya Sharma edited comment on OFBIZ-2954 at 3/12/19 12:30 PM:
---------------------------------------------------------------

Thanks, Jacques. I will do that.

IMO the cause is perhaps that the simple method considers the default value for the "loginRequired" parameter as true until explicitly declared with the service as false.

 As per the following code in the SimpleMethod.java
{code:java}
loginRequired = !"false".equals(simpleMethodElement.getAttribute("login-required"));
{code}
 

So we could add this attribute in this service if we wish to allow execution without login.


was (Author: priya.sharma.9362):
Thanks, Jacques. I will do that.

IMO the cause is perhaps that the simple method considers the default value for the "loginRequired" parameter as true until explicitly declared with the service as false.

 
{code:java}
loginRequired = !"false".equals(simpleMethodElement.getAttribute("login-required"));
{code}
So we could add this attribute in this service if we wish to allow execution without login.

> Service to get the party postal address
> ---------------------------------------
>
>                 Key: OFBIZ-2954
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2954
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: party
>            Reporter: Abdullah Shaikh
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: OFBIZ-2954_Service to get the party postal address.patch, OFBIZ-2954_Service to get the party postal address.patch
>
>
> There are services to get the party telephone (getPartyTelephone) & email (getPartyEmail), but no service to get the party postal address.
> We should have a getPartyPostalAddress service, therefore, I have attached a patch for the service.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)