mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
[bug] unable to update a coupon
This commit is contained in:
parent
c50e69b351
commit
818e9e99fc
@ -3,6 +3,7 @@
|
||||
- Enforced validation on required input fields
|
||||
- Fix a bug: the view is not refreshed when deleting a recurring slot
|
||||
- Fix a bug: unable to add a new authorized file type for project's CAD files
|
||||
- Fix a bug: unable to update a coupon
|
||||
|
||||
## v4.7.6 2021 March 24
|
||||
- Ability to disable the trainings module
|
||||
|
@ -5,7 +5,7 @@ class Coupon < ApplicationRecord
|
||||
has_many :invoices
|
||||
has_many :payment_schedule
|
||||
|
||||
after_save :create_stripe_coupon, on: [:create]
|
||||
after_create :create_stripe_coupon
|
||||
after_commit :delete_stripe_coupon, on: [:destroy]
|
||||
|
||||
validates :name, presence: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user