mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 05:02:18 +08:00
Fix import of repository checklist items [SCI-6962] (#4198)
This commit is contained in:
parent
10e95ad465
commit
7af1684db0
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class Repository < RepositoryBase
|
|||
class_name: 'RepositorySnapshot',
|
||||
foreign_key: :parent_id,
|
||||
inverse_of: :original_repository
|
||||
has_many :repository_ledger_records, as: :references, dependent: :nullify
|
||||
has_many :repository_ledger_records, as: :reference, dependent: :nullify
|
||||
has_many :repository_table_filters, dependent: :destroy
|
||||
|
||||
before_save :sync_name_with_snapshots, if: :name_changed?
|
||||
|
|
|
@ -114,7 +114,7 @@ class RepositoryChecklistValue < ApplicationRecord
|
|||
checklist_item = column.repository_checklist_items.find { |item| item.data == item_text }
|
||||
|
||||
if checklist_item.blank?
|
||||
checklist_item = column.repository_checklist_items.new(data: text,
|
||||
checklist_item = column.repository_checklist_items.new(data: item_text,
|
||||
created_by: value.created_by,
|
||||
last_modified_by: value.last_modified_by)
|
||||
|
||||
|
|
Loading…
Reference in a new issue