You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (Commented) (JIRA)" <ji...@apache.org> on 2011/11/06 07:52:51 UTC

[jira] [Commented] (OFBIZ-4393) View entity condition-expr doesn't handle null

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

Jacques Le Roux commented on OFBIZ-4393:
----------------------------------------

Maybe we could rather follow Adrian's way on both _this.value_ and _this.relFieldName_ (ie put null if empty at start) and then revert r1195042. The idea behind is it's better to handle the issue at the root, in case some other cases pop up downstream. With a 1485 lines long file you never know...
                
> View entity condition-expr doesn't handle null
> ----------------------------------------------
>
>                 Key: OFBIZ-4393
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4393
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Rev 1165137
>            Reporter: Anne Jessel
>            Assignee: Adrian Crum
>         Attachments: OFBIZ-4393-view-entity_condition-expr_null.patch, OFBIZ-4393-view-entity_condition-expr_null.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> condition-expr tag in view-entity can't be used to compare a field with null. An absent value attribute is read as an empty string, and the code currently checks for value being null to know when to compare against null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira