Load exchange variants from correct attr

This commit is contained in:
Rohan Mitchell
2013-01-10 11:03:35 +11:00
parent 5129e31f21
commit d27ef76ead
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ angular.module('order_cycle', ['ngResource']).
},
addSupplier: function(new_supplier_id) {
this.order_cycle.incoming_exchanges.push({enterprise_id: new_supplier_id, active: true});
this.order_cycle.incoming_exchanges.push({enterprise_id: new_supplier_id, active: true, variants: {}});
},
load: function(order_cycle_id) {