From 38ae8ff7434882666041827960292c1afcb52243 Mon Sep 17 00:00:00 2001 From: ajugo Date: Fri, 5 May 2023 16:09:14 +0200 Subject: [PATCH] Fix opening of the smart annotation pop-up window [SCI-8048] (#5362) --- app/utilities/smart_annotation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utilities/smart_annotation.rb b/app/utilities/smart_annotation.rb index 2257e1dc1..a5df6eb0d 100644 --- a/app/utilities/smart_annotation.rb +++ b/app/utilities/smart_annotation.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class SmartAnnotation - include ActionView::Helpers::InputSanitizeHelper + include InputSanitizeHelper include ActionView::Helpers::TextHelper attr_writer :current_user, :current_team, :query @@ -46,7 +46,7 @@ class SmartAnnotation res = res.joins('LEFT OUTER JOIN "my_module_repository_rows" "current_my_module_repository_rows"'\ 'ON "current_my_module_repository_rows"."repository_row_id" = "repository_rows"."id" '\ 'AND "current_my_module_repository_rows"."my_module_id" = ' + my_module_id.to_s) - .select('repository_rows.id', 'repository_rows.name', + .select('repository_rows.*', 'CASE WHEN current_my_module_repository_rows.id IS NOT NULL '\ 'THEN true ELSE false END as row_assigned') end