Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRY - Fixing Protocol Merge Issues #2943

Merged
merged 2 commits into from
Aug 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/dashboard/protocol_merges_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def perform_protocol_merge

# checking for and assigning research types, impact areas, and affiliations...
if has_research?(@merged_protocol, 'human_subjects') && !has_research?(@master_protocol, 'human_subjects')
@merged_protocol.human_subjects_info.update_attributes(protocol_id: @master_protocol.id)
@master_protocol.research_types_info.update_attributes(human_subjects: true)
@merged_protocol.irb_records.each { |irb_record| irb_record.update_attributes(human_subjects_info_id: @master_protocol.human_subjects_info.id) }
elsif has_research?(@merged_protocol, 'vertebrate_animals') && !has_research?(@master_protocol, 'vertebrate_animals')
@merged_protocol.vertebrate_animals_info.update_attributes(protocol_id: @master_protocol.id)
elsif has_research?(@merged_protocol, 'investigational_products') && !has_research?(@master_protocol, 'investigational_products')
Expand Down