mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/9628] _add_module 'after'-parameter does not work correctly.
The modules were grouped by left_id so num_modules is always one (hopefully), but the number of rows is the actual value we'd like to know. Removing the GROUP BY resolves the issue. PHPBB3-9628
This commit is contained in:
parent
6d7e30ae99
commit
4637709f0a
1 changed files with 0 additions and 1 deletions
|
@ -685,7 +685,6 @@ function _add_modules($modules_to_install)
|
||||||
WHERE module_class = '" . $db->sql_escape($module_data['class']) . "'
|
WHERE module_class = '" . $db->sql_escape($module_data['class']) . "'
|
||||||
AND parent_id = {$parent_id}
|
AND parent_id = {$parent_id}
|
||||||
AND left_id BETWEEN {$first_left_id} AND {$module_row['left_id']}
|
AND left_id BETWEEN {$first_left_id} AND {$module_row['left_id']}
|
||||||
GROUP BY left_id
|
|
||||||
ORDER BY left_id";
|
ORDER BY left_id";
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
$steps = (int) $db->sql_fetchfield('num_modules');
|
$steps = (int) $db->sql_fetchfield('num_modules');
|
||||||
|
|
Loading…
Add table
Reference in a new issue