Fix consumption check for full view repository [SCI-10184] (#7082)

This commit is contained in:
ajugo 2024-02-13 15:05:34 +01:00 committed by GitHub
parent daa5280521
commit 7fe6aae843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,7 +130,7 @@ class MyModuleRepositoriesController < ApplicationController
render json: {
html: render_to_string(
partial: 'my_modules/repositories/full_view_table',
locals: { include_stock_consumption: params[:include_stock_consumption] }
locals: { include_stock_consumption: params[:include_stock_consumption] == 'true' }
)
}
end