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:
parent
f883f8c344
commit
e5341b0b89
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user