projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3205d8b
)
Fixed small bug when calling ui_lists.inc from WO issue.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sat, 12 Dec 2015 10:16:34 +0000
(11:16 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sat, 12 Dec 2015 10:16:34 +0000
(11:16 +0100)
includes/ui/ui_lists.inc
patch
|
blob
|
history
diff --git
a/includes/ui/ui_lists.inc
b/includes/ui/ui_lists.inc
index 0d3b1ecf84e8f4e7089b2132e8b73b7f242012cf..fccfaafff2def44dd5fd16676571ab22c18443a3 100644
(file)
--- 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 "<td>$label</td>\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");
}