From a7a4dccc9833246aaf4be31af3b30f558d414d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Tue, 6 Jun 2023 16:24:33 +0200 Subject: [PATCH] hotfix: filter direct sources --- app/models/communication/website/with_git_repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/communication/website/with_git_repository.rb b/app/models/communication/website/with_git_repository.rb index c5a12ff05..c118eac33 100644 --- a/app/models/communication/website/with_git_repository.rb +++ b/app/models/communication/website/with_git_repository.rb @@ -16,7 +16,7 @@ module Communication::Website::WithGitRepository # Synchronisation optimale d'objet indirect def sync_indirect_object_with_git(indirect_object) return unless git_repository.valid? - indirect_object.direct_sources.each do |direct_source| + indirect_object.direct_sources.where(website_id: self.id).each do |direct_source| add_direct_source_to_sync(direct_source) end git_repository.sync! -- GitLab