mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
Fix opening of the smart annotation pop-up window [SCI-8048] (#5362)
This commit is contained in:
parent
29a9c3781e
commit
38ae8ff743
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue