mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +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
|
else
|
||||||
$scope.attempting = true
|
$scope.attempting = true
|
||||||
Subscription.save
|
Subscription.save
|
||||||
coupon_code: coupon.code
|
coupon_code: (coupon.code if coupon)
|
||||||
subscription:
|
subscription:
|
||||||
plan_id: selectedPlan.id
|
plan_id: selectedPlan.id
|
||||||
user_id: member.id
|
user_id: member.id
|
||||||
@ -305,7 +305,7 @@ Application.Controllers.controller "PlansIndexController", ["$scope", "$rootScop
|
|||||||
$scope.ok = ->
|
$scope.ok = ->
|
||||||
$scope.attempting = true
|
$scope.attempting = true
|
||||||
Subscription.save
|
Subscription.save
|
||||||
coupon_code: coupon.code
|
coupon_code: (coupon.code if coupon)
|
||||||
subscription:
|
subscription:
|
||||||
plan_id: selectedPlan.id
|
plan_id: selectedPlan.id
|
||||||
user_id: member.id
|
user_id: member.id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user