Seems like there is a bug in Edit Orders 4.1.4 in the file admin/includes/functions/extra_functions/edit_orders_functions.php
Line 1025 - 1028:
Code:
$check = $db->Execute(
'SELECT `p`.`products_quantity` FROM `' . TABLE_PRODUCTS . '` ' .
'WHERE `p`.`products_id` = \'' . (int)$query->fields['products_id'] . '\''
);
Which probably instead should be (a p isn't defined):
Code:
$check = $db->Execute(
'SELECT `products_quantity` FROM `' . TABLE_PRODUCTS . '` ' .
'WHERE `products_id` = \'' . (int)$query->fields['products_id'] . '\''
);
Else it trows an error like:
PHP Fatal error: 1054:Unknown column 'p.products_quantity' in 'field list' :: SELECT `p`.`products_quantity` FROM `products` WHERE `p`.`products_id` = '32' ==> (as called by) /public_html/admin/includes/functions/extra_functions/edit_orders_functions.php on line 1028 <== in /public_html/includes/classes/db/mysql/query_factory.php on line 155
Bookmarks