1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

fix bug: cant subscribe a plan

This commit is contained in:
Peng DU 2016-09-20 14:37:35 +02:00
parent f883f8c344
commit e5341b0b89

View File

@ -232,7 +232,7 @@ Application.Controllers.controller "PlansIndexController", ["$scope", "$rootScop
else
$scope.attempting = true
Subscription.save
coupon_code: coupon.code
coupon_code: (coupon.code if coupon)
subscription:
plan_id: selectedPlan.id
user_id: member.id
@ -305,7 +305,7 @@ Application.Controllers.controller "PlansIndexController", ["$scope", "$rootScop
$scope.ok = ->
$scope.attempting = true
Subscription.save
coupon_code: coupon.code
coupon_code: (coupon.code if coupon)
subscription:
plan_id: selectedPlan.id
user_id: member.id