Skip to content

Commit

Permalink
fix patient view
Browse files Browse the repository at this point in the history
  • Loading branch information
addynaik committed Jan 29, 2014
1 parent 41e2588 commit 5e10ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/templates/patient_results/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{#collection tag='tbody' item-context=patientContext}}
<tr>
<td>
{{#link "patients/{{patient_id}}" expand-tokens=true}}{{medical_record_id}}{{/link}}
{{#link "patients/{{medical_record_id}}" expand-tokens=true}}{{medical_record_id}}{{/link}}
</td>
<td><strong>{{last}}</strong></td>
<td>{{first}}</td>
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/patients_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def results
private

def load_patient
@patient = Record.find(params[:id])
@patient = Record.by_patient_id(params[:id]).first
authorize! :read, @patient
end

Expand Down

0 comments on commit 5e10ec1

Please sign in to comment.