Merge pull request #5425 from rekonder/aj_SCI_8418

Fix rendering of simple repository view on task [SCI-8418]
This commit is contained in:
Alex Kriuchykhin 2023-05-18 09:35:06 +02:00 committed by GitHub
commit c2fb957699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = {