From 664ced7c6b0d9673b91e74e49e617a0b716b24b9 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Tue, 6 Jun 2023 16:35:08 +0200
Subject: [PATCH] fix

---
 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 d4276d45c..0db7dafec 100644
--- a/app/models/communication/website/with_git_repository.rb
+++ b/app/models/communication/website/with_git_repository.rb
@@ -52,7 +52,7 @@ module Communication::Website::WithGitRepository
 
   def add_direct_source_to_sync(direct_source)
     # Ne pas traiter les sources d'autres sites
-    return unless direct_source.website_id == self.id
+    return unless direct_source.communication_website_id == self.id
     # Ne pas traiter les sources non synchronisables
     return unless direct_source.syncable?
     Communication::Website::GitFile.sync self, direct_source
-- 
GitLab