Modify ↓
Opened 3 years ago
Closed 3 years ago
#2299 closed Bug/Fehler (fixed)
AND-Clause nach GROUP BY in /account.php
| Reported by: | noRiddle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.8.0 |
| Component: | Shop | Version: | 2.0.7.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
In dieser Query
$product_history_query = xtDBquery("SELECT p.*,
pd.*,
cd.categories_name
FROM ".TABLE_PRODUCTS." p
JOIN ".TABLE_PRODUCTS_DESCRIPTION." pd
ON p.products_id=pd.products_id
AND pd.language_id='".(int) $_SESSION['languages_id']."'
JOIN ".TABLE_PRODUCTS_TO_CATEGORIES." p2c
ON p.products_id = p2c.products_id
JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
ON cd.categories_id = p2c.categories_id
AND cd.language_id = '".(int) $_SESSION['languages_id']."'
WHERE p.products_status = '1'
AND p.products_id = '".(int) $_SESSION['tracking']['products_history'][$i]."'
GROUP BY p.products_id
".PRODUCTS_CONDITIONS_P);
müssen die PRODUCTS_CONDITIONS_P vor dem "GROUP BY"-Befehl stehen:
WHERE p.products_status = '1'
AND p.products_id = '".(int) $_SESSION['tracking']['products_history'][$i]."'
".PRODUCTS_CONDITIONS_P."
GROUP BY p.products_id");
Da die Query seltsamerweise keinen Fehler wirft ist es nicht dringend, allerdings greift das Filtern nach den Permissions nicht.
Thread dazu: AND-Clause nach GROUP BY in /account.php
Gruß,
noRiddle
Attachments (0)
Change History (2)
comment:1 by , 3 years ago
| Milestone: | → modified-shop-2.0.8.0 |
|---|
comment:2 by , 3 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In 14686: