From f94267578216595c95c966032f233b2a1ff0fc9c Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 6 Nov 2024 10:52:23 +0100 Subject: [PATCH 1/2] send full messages to sentry --- app/models/assign_to.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/assign_to.rb b/app/models/assign_to.rb index cfab77484..19d1fd847 100644 --- a/app/models/assign_to.rb +++ b/app/models/assign_to.rb @@ -32,7 +32,7 @@ class AssignTo < ApplicationRecord if errors.present? Sentry.capture_message( "Destroying invalid ProcedurePresentation", - extra: { procedure_presentation_id: procedure_presentation.id, errors: } + extra: { procedure_presentation_id: procedure_presentation.id, errors: errors.full_messages } ) self.procedure_presentation = nil end From dae9a40c5cb3e28c514935dc08ea4d6868e0c5e2 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 6 Nov 2024 10:55:48 +0100 Subject: [PATCH 2/2] fix: the option is mandatory in an enum filter --- app/components/instructeurs/column_filter_value_component.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/instructeurs/column_filter_value_component.rb b/app/components/instructeurs/column_filter_value_component.rb index 0fde78d38..ef83d1aa6 100644 --- a/app/components/instructeurs/column_filter_value_component.rb +++ b/app/components/instructeurs/column_filter_value_component.rb @@ -16,7 +16,8 @@ class Instructeurs::ColumnFilterValueComponent < ApplicationComponent id: 'value', name: "filters[][filter]", class: 'fr-select', - data: { no_autosubmit: true } + data: { no_autosubmit: true }, + required: true else tag.input( class: 'fr-input',