mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +01:00
(fix) avoids crash if invoicing_profile has no address associated to it
This commit is contained in:
parent
0716596add
commit
a946399ec5
@ -3,6 +3,7 @@
|
|||||||
## next release
|
## next release
|
||||||
|
|
||||||
- fix a bug: user was not able to reserve at the same time of an event with pre-registration invalidated
|
- fix a bug: user was not able to reserve at the same time of an event with pre-registration invalidated
|
||||||
|
- fix a bug: avoids crash if invoicing_profile has no address associated to it
|
||||||
|
|
||||||
## v6.3.4 2023 November 23
|
## v6.3.4 2023 November 23
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ class User < ApplicationRecord
|
|||||||
statistic_profile.gender.nil? || profile.first_name.blank? || profile.last_name.blank? || username.blank? ||
|
statistic_profile.gender.nil? || profile.first_name.blank? || profile.last_name.blank? || username.blank? ||
|
||||||
email.blank? || encrypted_password.blank? || group_id.nil? || statistic_profile.birthday.blank? ||
|
email.blank? || encrypted_password.blank? || group_id.nil? || statistic_profile.birthday.blank? ||
|
||||||
(Setting.get('phone_required') && profile.phone.blank?) ||
|
(Setting.get('phone_required') && profile.phone.blank?) ||
|
||||||
(Setting.get('address_required') && invoicing_profile.address&.address&.blank?)
|
(Setting.get('address_required') && invoicing_profile&.address&.address&.blank?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.mapping
|
def self.mapping
|
||||||
|
Loading…
x
Reference in New Issue
Block a user