mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Fix state_id and country_id type bug
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
Darkswarm.factory 'CurrentOrder', (currentOrder) ->
|
||||
# Populate Currentorder.order from json in page. This is probably redundant now.
|
||||
new class CurrentOrder
|
||||
order: currentOrder
|
||||
constructor: ->
|
||||
if currentOrder.bill_address
|
||||
currentOrder.bill_address.state_id = currentOrder.bill_address.state_id + ''
|
||||
currentOrder.bill_address.country_id = currentOrder.bill_address.country_id + ''
|
||||
|
||||
if currentOrder.ship_address
|
||||
currentOrder.ship_address.state_id = currentOrder.ship_address.state_id + ''
|
||||
currentOrder.ship_address.country_id = currentOrder.ship_address.country_id + ''
|
||||
|
||||
@order = currentOrder
|
||||
|
||||
Reference in New Issue
Block a user