From 5eb23eb0c70f7909e5ae3c8abeda5f9af167fb74 Mon Sep 17 00:00:00 2001
From: pabois <pierreandre.boissinot@noesya.coop>
Date: Thu, 6 Jul 2023 16:21:24 +0200
Subject: [PATCH] fix

---
 app/models/communication/block.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/communication/block.rb b/app/models/communication/block.rb
index a7efd61f8..327082ab8 100644
--- a/app/models/communication/block.rb
+++ b/app/models/communication/block.rb
@@ -141,8 +141,8 @@ class Communication::Block < ApplicationRecord
     translation.about = about_translation
     translation.template.translate!
     translation.data = translation.template.data
-    translation.save
     translation.heading_id = heading_id
+    translation.save
   end
 
   def to_s
-- 
GitLab