From 2f5015e2a25e9ebcad92f25e1fe93916bdfc55e7 Mon Sep 17 00:00:00 2001 From: ajugo Date: Mon, 17 Jul 2023 15:42:40 +0200 Subject: [PATCH] Fix error at adding consumption to assigned item to task [SCI-8868] (#5789) --- .../repositories/_consume_stock_modal_content.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/my_modules/repositories/_consume_stock_modal_content.html.erb b/app/views/my_modules/repositories/_consume_stock_modal_content.html.erb index 0152f10c3..dbd5d7f63 100644 --- a/app/views/my_modules/repositories/_consume_stock_modal_content.html.erb +++ b/app/views/my_modules/repositories/_consume_stock_modal_content.html.erb @@ -1,4 +1,6 @@ -<%= form_with url: update_consumption_my_module_repository_path(@my_module, @repository, module_row_id: @module_repository_row), method: :post, remote: true do |f| %> +<%= form_with url: update_consumption_my_module_repository_path(@my_module, @repository, module_row_id: @module_repository_row), + method: :post, + html: { data: { remote: true } } do |f| %>