Skip to content

Commit

Permalink
remove everything that is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
guswhitten committed Jul 26, 2024
1 parent ea28bb9 commit cbc1e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/case_contacts/form_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def create_additional_case_contacts(case_contact)
other_expenses_describe: ae.other_expenses_describe
)
end
case_contact.contact_topic_answers.includes(:contact_topic).each do |cta|
case_contact.contact_topic_answers.each do |cta|
new_case_contact.contact_topic_answers << cta.dup
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/case_contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def new
# - If there are cases defined in the params, select those cases (often coming from the case page)
# - If there is only one case, select that case
# - If there are no hints, let them select their case
casa_cases = policy_scope(current_organization.casa_cases.includes(:volunteers))
casa_cases = policy_scope(current_organization.casa_cases)
draft_case_ids =
if params.dig(:case_contact, :casa_case_id).present?
casa_cases.where(id: params.dig(:case_contact, :casa_case_id)).pluck(:id)
Expand Down

0 comments on commit cbc1e81

Please sign in to comment.