From 9e0e21399bfbe4dda66ab08622c47b26c896f7d8 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 18 May 2017 09:22:39 -0500 Subject: [PATCH] Fix subtle bug when identifying purchase batch row on order form update --- tailbone/views/purchases/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/purchases/batch.py b/tailbone/views/purchases/batch.py index 0dd60c6d..77bda352 100644 --- a/tailbone/views/purchases/batch.py +++ b/tailbone/views/purchases/batch.py @@ -695,7 +695,7 @@ class PurchaseBatchView(BatchMasterView): return {'error': "Product not found"} row = None - rows = [row for row in batch.data_rows if row.product_uuid == uuid] + rows = [r for r in batch.data_rows if r.product_uuid == uuid] if rows: assert len(rows) == 1 row = rows[0]