1
0
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:
Sylvain 2020-10-20 15:52:14 +02:00
parent b5a4e724e8
commit 2227a59275
2 changed files with 2 additions and 1 deletions

View File

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

View File

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