mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
(fix) Stock value is editable to archived item in item table [SCI-9814] (#6838)
This commit is contained in:
parent
d33ef5bcaf
commit
8a9d4a772a
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ module RepositoryDatatableHelper
|
|||
else
|
||||
{ stock_url: new_repository_stock_repository_repository_row_url(repository, record) }
|
||||
end
|
||||
row['stock'][:stock_managable] = stock_managable
|
||||
row['stock'][:stock_managable] = stock_managable && record.active?
|
||||
row['stock']['displayWarnings'] = display_stock_warnings?(repository)
|
||||
row['stock'][:stock_status] = stock_cell&.value&.status
|
||||
|
||||
|
|
Loading…
Reference in a new issue