Skip to content

Commit

Permalink
Fix annotation clone sig
Browse files Browse the repository at this point in the history
  • Loading branch information
mjy committed Jun 12, 2024
1 parent 8a54979 commit aaa64db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/collecting_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,8 @@ def clone(annotations: false, incremented_identifier_id: nil)
add_incremented_identifier(to_object: a, incremented_identifier_id:)
end

if annotations
clone_annotations(self, a, except: [:identifiers])
if !annotations.blank? # TODO: boolean param this
clone_annotations(to_object: a, except: [:identifiers])
end

a.save! # TODO: confirm behaviour is OK in case of comprehensive.
Expand Down

0 comments on commit aaa64db

Please sign in to comment.