From: Janusz Dobrowolski Date: Sun, 12 Dec 2010 17:06:40 +0000 (+0000) Subject: Fixed db error after last changes related to bug 313 X-Git-Tag: 2.3-final~870 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=80d37cd52c249559dfb4439595ca8a9b83e9874a;p=fa-stable.git Fixed db error after last changes related to bug 313 --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 289f7348..edacf4a4 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +12-Dec-2010 Janusz Dobrowolski +# [0000318] Database error after last changes related to bu 313 +$ /purchasing/includes/ui/po_ui.inc + ------------------------------- Release 2.3 ------------------------------------ 09-Dec-2010 Joe Hunt ! Release 2.3.0 diff --git a/purchasing/includes/ui/po_ui.inc b/purchasing/includes/ui/po_ui.inc index 5f713a48..d5ae6fc1 100644 --- a/purchasing/includes/ui/po_ui.inc +++ b/purchasing/includes/ui/po_ui.inc @@ -201,7 +201,7 @@ function display_po_header(&$order) /*If this is the first time the form loaded set up defaults */ //$_POST['StkLocation'] = $_SESSION['UserStockLocation']; - $sql = "SELECT delivery_address, phone FROM ".TB_PREF."locations WHERE loc_code='" . db_escape($_POST['StkLocation']) . "'"; + $sql = "SELECT delivery_address, phone FROM ".TB_PREF."locations WHERE loc_code=".db_escape($_POST['StkLocation']); $result = db_query($sql,"could not get location info"); if (db_num_rows($result) == 1)