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: Philipp Bracher
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]>
----------------------------------------------------------------