mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
[ticket/14437] Preserve attachment ID order by ordering by attach_id
PHPBB3-14437
This commit is contained in:
parent
1e10664739
commit
f1772ce7e5
1 changed files with 1 additions and 1 deletions
|
@ -1452,7 +1452,7 @@ if (sizeof($attach_list))
|
||||||
FROM ' . ATTACHMENTS_TABLE . '
|
FROM ' . ATTACHMENTS_TABLE . '
|
||||||
WHERE ' . $db->sql_in_set('post_msg_id', $attach_list) . '
|
WHERE ' . $db->sql_in_set('post_msg_id', $attach_list) . '
|
||||||
AND in_message = 0
|
AND in_message = 0
|
||||||
ORDER BY filetime DESC, post_msg_id ASC';
|
ORDER BY attach_id DESC, post_msg_id ASC';
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
|
|
Loading…
Add table
Reference in a new issue