Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2499

IfVoter returns always false if condition is false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.3
    • Fix Version/s: 4.0, 3.6.4, 3.6.5
    • Component/s: core
    • Labels:
      None
    • Patch included:
      Yes

      Description

      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 ; }

        Attachments

          Activity

            People

            Assignee:
            gjoseph Magnolia International
            Reporter:
            ralf Ralf Hirning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: