mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
[bug] unable to rename a group containing users
This commit is contained in:
parent
b5a4e724e8
commit
2227a59275
@ -6,6 +6,7 @@
|
||||
- Fix a bug: unable to change the date formats using the setup script
|
||||
- Fix a bug: missing translation for projets drafts in public profile
|
||||
- Fix a bug: email notification after reservation update have wrong previous date (#234)
|
||||
- Fix a bug: unable to rename a group containing users
|
||||
- Updated contribution guidelines
|
||||
- Updated summernote to 0.8.18
|
||||
- Updated angular-summernote to 0.8.1
|
||||
|
@ -15,7 +15,7 @@ class Group < ApplicationRecord
|
||||
friendly_id :name, use: :slugged
|
||||
|
||||
validates :name, :slug, presence: true
|
||||
validates :disabled, inclusion: { in: [false] }, if: :group_has_users?
|
||||
validates :disabled, inclusion: { in: [false, nil] }, if: :group_has_users?
|
||||
|
||||
after_create :create_prices
|
||||
after_create :create_statistic_subtype
|
||||
|
Loading…
x
Reference in New Issue
Block a user