undefined myrow ['trans_type'] when updating sales order
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 26 Jul 2017 06:07:30 +0000 (08:07 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 26 Jul 2017 06:07:30 +0000 (08:07 +0200)
sales/includes/db/sales_order_db.inc

index b177f5b71c05b0ea0517984dff6e833d5ffb3729..584ffcd0562bea330e472518943230e52c70c87a 100644 (file)
@@ -130,7 +130,7 @@ function update_sales_order($order)
        hook_db_prewrite($order, $order->trans_type);
 
        if ($order->trans_type == ST_SALESORDER)
-               $allocs = get_payments_for($order_no, $myrow['trans_type'], $order->customer_id);
+               $allocs = get_payments_for($order_no, $order->trans_type, $order->customer_id);
 
        $sql = "UPDATE ".TB_PREF."sales_orders SET type =".db_escape($order->so_type)." ,
                debtor_no = " . db_escape($order->customer_id) . ",