[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20506#action_20506
 ] 

Gregory Joseph commented on MAGNOLIA-2499:
------------------------------------------

Fixed on 3.6 branch and trunk (4.0).
Added testcases.

> IfVoter returns always false if condition is false
> --------------------------------------------------
>
>                 Key: MAGNOLIA-2499
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2499
>             Project: Magnolia
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.6.3
>            Reporter: Ralf Hirning
>            Assignee: Gregory Joseph
>             Fix For: 3.6.x, 4.0
>
>
> IfVoter returns always false if condition is false.
> to solve:
> replace 
>             if(otherwise != null){
>                 outcome = otherwise.vote(value);
>             }
>             outcome = 0 ;
> with
>             if(otherwise != null){
>                 outcome = otherwise.vote(value);
>             } else {
>                 outcome = 0 ;
>            }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to