Skip to content

Commit

Permalink
fix rowCount if using batching display group with object array (issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Nov 27, 2012
1 parent f2f306b commit 1e318ba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,10 @@ public int rowCount() {
if (rowCount == -1) {
if (isBatching()) {
rowCount = ERXEOAccessUtilities.rowCountForFetchSpecification(dataSource().editingContext(), fetchSpecification());
} else {
} else if (dataSource() != null) {
rowCount = dataSource().fetchObjects().count();
} else if (allObjects() != null) {
rowCount = allObjects().count();
}
if (shouldRememberRowCount()) {
_rowCount = rowCount;
Expand Down

0 comments on commit 1e318ba

Please sign in to comment.