From 4c98b8f01c84dd268c6e49e230209da16cbd3f5b Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Thu, 27 Oct 2022 12:44:02 +0200 Subject: [PATCH] fix(merge): ensure service transfert always works --- app/models/administrateur.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/administrateur.rb b/app/models/administrateur.rb index 5d0783862..dc803c5b9 100644 --- a/app/models/administrateur.rb +++ b/app/models/administrateur.rb @@ -131,7 +131,7 @@ class Administrateur < ApplicationRecord old_service.procedures.update_all(service_id: corresponding_service.id) old_service.destroy else - old_service.update!(administrateur_id: id) + old_service.update_column(:administrateur_id, id) end end