From 7730a9a2221e108a509f72465b23ab0bc0392a19 Mon Sep 17 00:00:00 2001 From: Michael Schmiedgen Date: Thu, 7 May 2015 11:35:28 +0200 Subject: [PATCH] Fix ERXDisplayGroup.setSelectedObjects() for display groups without a datasource, e.g. if specified via setObjectArray(). Otherwise the selected objects get lost. --- .../Sources/er/extensions/appserver/ERXDisplayGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/Core/ERExtensions/Sources/er/extensions/appserver/ERXDisplayGroup.java b/Frameworks/Core/ERExtensions/Sources/er/extensions/appserver/ERXDisplayGroup.java index 31fd6ac10d3..8f8c6a29185 100644 --- a/Frameworks/Core/ERExtensions/Sources/er/extensions/appserver/ERXDisplayGroup.java +++ b/Frameworks/Core/ERExtensions/Sources/er/extensions/appserver/ERXDisplayGroup.java @@ -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);