mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Fix field codes dropdown for label templates [SCI-7770] (#4837)
This commit is contained in:
parent
7eff083bb7
commit
bf5e0da17a
1 changed files with 2 additions and 1 deletions
|
@ -15,9 +15,10 @@ module LabelTemplates
|
|||
end
|
||||
|
||||
def tags
|
||||
custom_common_columns = repository_tags.present? ? repository_tags.pluck(:tags).reduce(:&) : []
|
||||
{
|
||||
default: DEFAULT_COLUMNS,
|
||||
common: common_columns + repository_tags.pluck(:tags).reduce(:&),
|
||||
common: common_columns + custom_common_columns,
|
||||
repositories: repository_tags
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue