mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
fix: fix bug in Pricing (#2255)
This commit is contained in:
parent
739a9bcd0d
commit
9da2f0775f
@ -283,6 +283,9 @@ func CreateProductForPlan(plan *Plan) *Product {
|
||||
Providers: plan.PaymentProviders,
|
||||
State: "Published",
|
||||
}
|
||||
if product.Providers == nil {
|
||||
product.Providers = []string{}
|
||||
}
|
||||
return product
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@ class PlanListPage extends BaseListPage {
|
||||
pricePerYear: 100,
|
||||
currency: "USD",
|
||||
isEnabled: true,
|
||||
paymentProviders: [],
|
||||
role: "",
|
||||
options: [],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user