Fix bug when making batch from product query

This commit is contained in:
Lance Edgar 2018-01-05 09:36:02 -06:00
parent 061aa889a6
commit b2fe300f02

View file

@ -516,7 +516,7 @@ class ProductsView(MasterView):
pform = params_forms.get(batch_key)
if pform:
pdata = pform.validate(controls)
for field in pform:
for field in pform.schema:
param_name = pform.schema[field.name].param_name
params[param_name] = pdata[field.name]