mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-27 07:46:21 +00:00
Merge branch 'issue-7537' into panel.testing.sutty.nl
This commit is contained in:
commit
ee9e4a3d41
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do
|
||||||
when 'belongs_to', 'has_one'
|
when 'belongs_to', 'has_one'
|
||||||
if value_was.present?
|
if value_was.present?
|
||||||
associated_posts(value_was).each do |remove_post|
|
associated_posts(value_was).each do |remove_post|
|
||||||
remove_relation_from(remove_post[inverse_attribute], value_was)
|
remove_relation_from(remove_post[inverse_attribute], post.uuid.value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue