From 3ffd396d773ffb8a14d4f77ae75aa3ab622c2edb Mon Sep 17 00:00:00 2001 From: Aday BA Date: Thu, 14 Nov 2024 15:56:18 +0000 Subject: [PATCH] Fixed session card relaunch button configuration for fixed SmartAttributes (#3951) --- apps/dashboard/app/helpers/batch_connect/sessions_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb b/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb index 68a0f6227..14bd4435b 100644 --- a/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb +++ b/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb @@ -91,7 +91,7 @@ def relaunch(session) return unless batch_connect_app.valid? user_context = session.user_context - params = batch_connect_app.attributes.map{|attribute| ["batch_connect_session_context[#{attribute.id}]", user_context.fetch(attribute.id, '')]}.to_h + params = batch_connect_app.attributes.map{|attribute| ["batch_connect_session_context[#{attribute.id}]", user_context.fetch(attribute.id, nil)]}.to_h.compact title = "#{t('dashboard.batch_connect_sessions_relaunch_title')} #{session.title} #{t('dashboard.batch_connect_sessions_word')}" button_to( batch_connect_session_contexts_path(token: batch_connect_app.token),