Details
-
Type:
Bug
-
Status: Closed
-
Priority:
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;
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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Field | Original Value | New Value |
---|---|---|
Salesforce Case Reference | 5007000000RVfpiAAD |
Assignee | Nils Lundquist [ nils.lundquist ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Fix Version/s | EE-3.2.0.GA [ 10332 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |