Permalink
Browse files

Fixed bug in creation of codedValues (codes will never appear in a ha…

…sh of a CoodedResultValue)
  • Loading branch information...
1 parent c756b3c commit 9bade8bebe0746ae9858e1db8166e3e9a4fb81bf @eedrummer committed Aug 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/assets/javascripts/core.js.coffee
View
6 app/assets/javascripts/core.js.coffee
@@ -419,10 +419,10 @@ class hQuery.CodedEntry
values: ->
values = []
for value in @json['values']
- if value['codes']?
- values.push hQuery.createCodedValues values
- else
+ if value['scalar']?
values.push new hQuery.PhysicalQuantity value
+ else
+ values.push hQuery.createCodedValues values
values

0 comments on commit 9bade8b

Please sign in to comment.