From: Janusz Dobrowolski Date: Sun, 26 Apr 2009 16:10:29 +0000 (+0000) Subject: Fixed ambigous sql. X-Git-Tag: v2.4.2~19^2~1429 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=0d15d46e4424d98568b59e98dda37ed4607d7f77;p=fa-stable.git Fixed ambigous sql. --- diff --git a/inventory/manage/item_categories.php b/inventory/manage/item_categories.php index 78c21944..59873122 100644 --- a/inventory/manage/item_categories.php +++ b/inventory/manage/item_categories.php @@ -95,7 +95,7 @@ if (list_updated('mb_flag')) { $sql = "SELECT c.*, t.name as tax_name FROM ".TB_PREF."stock_category c, " .TB_PREF."item_tax_types t WHERE c.dflt_tax_type=t.id"; -if (!check_value('show_inactive')) $sql .= " AND !inactive"; +if (!check_value('show_inactive')) $sql .= " AND !c.inactive"; $result = db_query($sql, "could not get stock categories");