From f1f26587c0cc8f29e51365e75a08b2e0ca4e4012 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 4 Jun 2020 09:42:22 +0200 Subject: [PATCH] Fix appearence of snapshots from another my_module in report [SCI-4728] --- app/models/repository_snapshot.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/repository_snapshot.rb b/app/models/repository_snapshot.rb index 9d3e7c0e9..bd5020feb 100644 --- a/app/models/repository_snapshot.rb +++ b/app/models/repository_snapshot.rb @@ -19,7 +19,9 @@ class RepositorySnapshot < RepositoryBase Constants::REPOSITORY_SNAPSHOT_TABLE_DEFAULT_STATE['length'] end - def assigned_rows(_my_module) + def assigned_rows(my_module) + return RepositoryRow.none if my_module != self.my_module + repository_rows end