From 20052e966aac827ab89c43ba7aeab45cbe09267d Mon Sep 17 00:00:00 2001 From: Andrej Date: Thu, 18 May 2023 09:08:12 +0200 Subject: [PATCH] Fix rendering of simple repository view on task [SCI-8418] --- app/helpers/repository_datatable_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/repository_datatable_helper.rb b/app/helpers/repository_datatable_helper.rb index aa12339be..9a6527b84 100644 --- a/app/helpers/repository_datatable_helper.rb +++ b/app/helpers/repository_datatable_helper.rb @@ -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 = {