Skip to content

Commit

Permalink
Fix ERXDisplayGroup.setSelectedObjects()
Browse files Browse the repository at this point in the history
for display groups without a datasource, e.g. if specified via
setObjectArray(). Otherwise the selected objects get lost.
  • Loading branch information
schmied authored and darkv committed Jan 14, 2016
1 parent 899e64e commit 7730a9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void setSelectedObjects(NSArray objects) {
if(log.isDebugEnabled()) {
log.debug("setSelectedObjects@" + hashCode() + ":" + (objects != null ? objects.count() : "0"));
}
if (this instanceof ERXBatchingDisplayGroup) {
if (this instanceof ERXBatchingDisplayGroup || dataSource() == null) {
// keep previous behavior
// CHECKME a batching display group has its own _displayedObjects variable so setSelectionIndexes won't work
super.setSelectedObjects(objects);
Expand Down

0 comments on commit 7730a9a

Please sign in to comment.