diff options
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/web/client/controller/ArchiveController.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/web/client/controller/ArchiveController.java b/src/org/traccar/web/client/controller/ArchiveController.java index 553e6746..9a0c18d0 100644 --- a/src/org/traccar/web/client/controller/ArchiveController.java +++ b/src/org/traccar/web/client/controller/ArchiveController.java @@ -74,7 +74,11 @@ public class ArchiveController implements ContentController, ArchiveView.Archive @Override public void onSuccess(List<Position> result) { positionStore.clear(); - positionStore.addAll(result); + if (result.isEmpty()) { + new AlertMessageBox("Error", "No results found for selected period").show(); + } else { + positionStore.addAll(result); + } } }); } else { |