1
0
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:
Sylvain 2021-03-29 10:19:06 +02:00
parent c50e69b351
commit 818e9e99fc
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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