Fix rendering of simple repository view on task [SCI-8418]

This commit is contained in:
Andrej 2023-05-18 09:08:12 +02:00
parent adaa2b6a48
commit 20052e966a

View file

@ -107,7 +107,7 @@ module RepositoryDatatableHelper
repository_rows = reminders_enabled ? with_reminders_status(repository_rows, repository) : repository_rows
# Always disabled in a simple view
stock_managable = false
stock_consumption_permitted = has_stock_management && stock_consumption_permitted?(repository, options[:my_module])
stock_consumption_permitted = has_stock_management && stock_consumption_permitted?(repository, my_module)
repository_rows.map do |record|
row = {