GX-Bug #48069 » OrderDetailsCustomersIDFix.patch
| src/admin/orders.php (revision ) | ||
|---|---|---|
| 249 | 249 |
FROM `orders` |
| 250 | 250 |
WHERE |
| 251 | 251 |
`customers_id` = "' . xtc_db_input($customerId) . '" OR |
| 252 |
`customers_cid` = "' . xtc_db_input($customerId) . '"'); |
|
| 252 |
`customers_cid` = "' . xtc_db_input($customerId) . '" |
|
| 253 |
AND customers_id=customers_cid |
|
| 254 |
'); |
|
| 255 |
|
|
| 253 | 256 |
$result = xtc_db_fetch_array($query); |
| 254 | 257 |
$amountOfOrders = '0'; |
| 255 | 258 |
if(count($result) > 0) |
| ... | ... | |
| 266 | 269 |
WHERE |
| 267 | 270 |
`sort_order` = "99" AND |
| 268 | 271 |
(customers_id = "' . xtc_db_input($customerId) . '" OR |
| 269 |
`customers_cid` = "' . xtc_db_input($customerId) . '")'); |
|
| 272 |
`customers_cid` = "' . xtc_db_input($customerId) . '" |
|
| 273 |
AND customers_id=customers_cid) |
|
| 274 |
'); |
|
| 275 |
|
|
| 270 | 276 |
$sumOrderTotal = 0; |
| 271 | 277 |
while($result = xtc_db_fetch_array($query)) |
| 272 | 278 |
{
|
| src/admin/html/compatibility/order_details.php (revision ) | ||
|---|---|---|
| 828 | 828 |
} |
| 829 | 829 |
elseif(!empty($GLOBALS['order']->customer['csID']) && $GLOBALS['order']->customer['ID'] !== $GLOBALS['order']->customer['csID']) |
| 830 | 830 |
{
|
| 831 |
$customerId = $GLOBALS['order']->customer['csID'];
|
|
| 831 |
$customerId = $GLOBALS['order']->customer['ID']; |
|
| 832 | 832 |
} |
| 833 | 833 |
|
| 834 | 834 |
?> |