Permalink
Browse files

Fix mapping to clinician telephone.

  • Loading branch information...
Josh Kim
Josh Kim committed Feb 17, 2011
1 parent caae998 commit 70ea65074af78abac33195b1e314ce5e5434c577
Showing with 1 addition and 1 deletion.
  1. +1 −1 client-web-api/ruby/lib/trisano-web-api-cmr.rb
@@ -753,7 +753,7 @@ def populate_form(form)
end
if !@options.clinician_telephone_entity_location_type.nil?
found = false
- form.field('morbidity_event[clinicians_attributes][1][person_entity_attributes][telephones_attributes][0][entity_location_type_id]').options.each do |s|
+ form.field('morbidity_event[clinicians_attributes][0][person_entity_attributes][telephones_attributes][0][entity_location_type_id]').options.each do |s|
if s.text == @options.clinician_telephone_entity_location_type
found = true
s.select

0 comments on commit 70ea650

Please sign in to comment.