mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
[bug] unable to change group if the previous was deactivated
This commit is contained in:
parent
102709246f
commit
570672c5db
@ -2,6 +2,7 @@
|
||||
|
||||
- Interface to manage partners
|
||||
- Ability to define, per availability, a custom duration for the reservation slots
|
||||
- Fix a bug: unable to change group if the previous was deactivated
|
||||
|
||||
## v4.3.4 2020 April 14
|
||||
|
||||
|
@ -364,7 +364,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def notify_group_changed
|
||||
return if changes[:group_id].first.nil?
|
||||
return unless changes[:group_id]&.first
|
||||
|
||||
ex_group = Group.find(changes[:group_id].first)
|
||||
meta_data = { ex_group_name: ex_group.name }
|
||||
|
Loading…
x
Reference in New Issue
Block a user