Describe the bug
Upgrade from 3.4.1 to 3.4.2 broke the following code, the resource record is always nil.
field :state, as: :badge, options: {
info: 'sent',
success: 'accepted',
danger: 'refused'
}, name: '', visible: lambda {
resource.record.state.in?(%w[accepted refused])
}
The exception is undefined method state' for nil`.
By just replacing 3.4.1 to 3.4.2 in the same environment (just reloading the page) it fails.
Our models are Deal has_many Proposaland it fails on a deals#show with has_many :proposals having the field state.
We had to revert our production because of this bug.
System configuration
Avo version:
3.4.2
Rails version:
7.1.3.2
Ruby version:
3.3.0
License type:
Are you using Avo monkey patches, overriding views or view components?
Impact
Urgency
(we cannot upgrade until it's fixed).
Describe the bug
Upgrade from 3.4.1 to 3.4.2 broke the following code, the resource record is always nil.
The exception is
undefined methodstate' for nil`.By just replacing 3.4.1 to 3.4.2 in the same environment (just reloading the page) it fails.
Our models are
Dealhas_manyProposaland it fails on a deals#show with has_many :proposals having the field state.We had to revert our production because of this bug.
System configuration
Avo version:
3.4.2
Rails version:
7.1.3.2
Ruby version:
3.3.0
License type:
Are you using Avo monkey patches, overriding views or view components?
Impact
Urgency
(we cannot upgrade until it's fixed).