mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 06:35:56 +08:00
Fix position validation for StorageLocationRepositoryRow [SCI-11050]
This commit is contained in:
parent
60d46efdd7
commit
04efd5f84f
|
@ -9,7 +9,7 @@ class StorageLocationRepositoryRow < ApplicationRecord
|
|||
belongs_to :repository_row, inverse_of: :storage_location_repository_rows
|
||||
belongs_to :created_by, class_name: 'User'
|
||||
|
||||
with_options if: -> { storage_location.container && storage_location.metadata['type'] == 'grid' } do
|
||||
with_options if: -> { storage_location.container && storage_location.metadata['display_type'] == 'grid' } do
|
||||
validate :position_must_be_present
|
||||
validate :ensure_uniq_position
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue