Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Apr 28, 2017
1 parent c9aab8c commit ddeadeb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/de/metas/ui/web/view/SqlView.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,17 @@ public void notifyRecordsChanged(final Set<TableRecordReference> recordRefs)
.filter(recordRef -> Objects.equals(viewTableName, recordRef.getTableName()))
.map(recordRef -> DocumentId.of(recordRef.getRecord_ID()))
.collect(GuavaCollectors.toImmutableSet());

if(rowIds.isEmpty())
{
return;
}

// Invalidate local rowsById cache
rowIds.forEach(cache_rowsById::remove);

ViewChangesCollector.getCurrentOrAutoflush()
.collectRowsChanged(this, rowIds);
// Collect event
ViewChangesCollector.getCurrentOrAutoflush().collectRowsChanged(this, rowIds);
}

//
Expand Down

0 comments on commit ddeadeb

Please sign in to comment.