mod/core/set/all/references.rb in card-1.98.0 vs mod/core/set/all/references.rb in card-1.98.1
- old
+ new
@@ -164,12 +164,12 @@
# on rename, update names in cards that refer to self by name (as directed)
event :update_referer_content, :finalize,
on: :update, after: :name_change_finalized, when: :update_referers do
referers.each do |card|
next if card.structure
- card.skip_in_action = %i[validate_renaming check_permissions!]
- attach_subcard card.name,
- content: card.replace_reference_syntax(name_before_last_save, name)
+ card.skip_event! :validate_renaming, :check_permissions
+ card.content = card.replace_reference_syntax name_before_last_save, name
+ attach_subcard card
end
end
# on rename, when NOT updating referer content, update references to ensure
# that partial references are correctly tracked