From a2099a12f896b1dda09445c15da0b478ad3344a4 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sat, 12 Dec 2015 11:16:34 +0100 Subject: [PATCH] Fixed small bug when calling ui_lists.inc from WO issue. --- includes/ui/ui_lists.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 0d3b1ecf..fccfaaff 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -987,6 +987,7 @@ function stock_component_items_list_cells($label, $name, $parent_stock_id, { if ($label != null) echo "$label\n"; + $parent = db_escape($parent_stock_id); echo stock_items_list($name, $selected_id, $all_option, $submit_on_change, array('where'=>array("stock_id != $parent"), 'cells'=>true, 'parent'=> $parent_stock_id), $editkey, "component"); } -- 2.30.2