Make time dependent product categories work
This commit is contained in:
@@ -96,7 +96,7 @@ class UserController < ApplicationController
|
||||
handle_message_params
|
||||
end
|
||||
format.json do
|
||||
h = ProductCategory.for_user(current_user, table: list.table, list: list) # list is performance parameter
|
||||
h = ProductCategory.for_user(current_user, table: list.table, list: list, supplier: @supplier) # list is performance parameter
|
||||
render json: h
|
||||
#products = list.supplier.products
|
||||
#product_categories = list.supplier.product_categories
|
||||
|
||||
Reference in New Issue
Block a user