1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] delete event with custom price (#61)

This commit is contained in:
Sylvain 2017-03-01 17:09:37 +01:00
parent 1092257526
commit b9dcf5a512
2 changed files with 2 additions and 2 deletions

View File

@ -3,12 +3,12 @@
## next release
- TODO export availabilities (taiga#57)
- TODO bug: calendar (github#59)
- TODO bug: delete event (github#61)
- Ability to create, manage and reserve spaces
- Improved admin's interface to create availabilities
- Complete rewrote of the reservation cart functionality with improved stability, performance and sustainability
- Fix a bug: trainings reservations are not shown in the admin's calendar
- Fix a bug: unable to delete an administrator from the system
- Fix a bug: unable to delete an event with a linked custom price (#61)
- [TODO DEPLOY] `rake db:migrate`, then `rake db:seed`
- [TODO DEPLOY] add the `FABLAB_WITHOUT_SPACES` environment variable
- [TODO DEPLOY] `rake fablab:es_add_spaces`

View File

@ -10,7 +10,7 @@ class Event < ActiveRecord::Base
has_many :reservations, as: :reservable, dependent: :destroy
has_and_belongs_to_many :event_themes, join_table: :events_event_themes, dependent: :destroy
has_many :event_price_categories
has_many :event_price_categories, dependent: :destroy
has_many :price_categories, through: :event_price_categories
accepts_nested_attributes_for :event_price_categories, allow_destroy: false