Merge pull request #7965 from betagouv/always_transfert_service_in_merge
fix(merge): s'assure que les transfert de service lors des merges d'administrateur fonctionnent
This commit is contained in:
commit
84a746741d
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class Administrateur < ApplicationRecord
|
||||||
old_service.procedures.update_all(service_id: corresponding_service.id)
|
old_service.procedures.update_all(service_id: corresponding_service.id)
|
||||||
old_service.destroy
|
old_service.destroy
|
||||||
else
|
else
|
||||||
old_service.update!(administrateur_id: id)
|
old_service.update_column(:administrateur_id, id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue