1
0
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:
Sylvain 2020-04-28 09:21:33 +02:00
parent 102709246f
commit 570672c5db
2 changed files with 2 additions and 1 deletions

View File

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

View File

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