ICEfaces
  1. ICEfaces
  2. ICE-9036

ace:tree - NodeStateMap.getExpended method returns wrong results

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.2.0.GA
    • Fix Version/s: EE-3.2.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:

      Description

      Bug in org.icefaces.ace.model.tree.NodeStateMap. getExpended method returns wrong results.

      Code with bug:
      --------------------------------------------------------------------------
      static class ExpandedPredicate implements Predicate, Serializable {
      public boolean evaluate(Object o) {
      if (o instanceof Entry)
      if (((NodeState)((Entry)o).getValue()).isSelected()) return true;
      return false;
      }
      }
      --------------------------------------------------------------------------

      Instead of

      if (((NodeState)((Entry)o).getValue()).isSelected()) return true;

      should be

      if (((NodeState)((Entry)o).getValue()).isExpanded()) return true;

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000RVfpiAAD
        Arran Mccullough made changes -
        Assignee Nils Lundquist [ nils.lundquist ]
        Nils Lundquist made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s EE-3.2.0.GA [ 10332 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: