mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-79247_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
ff7530e1d6
@ -350,7 +350,7 @@ class discussion_list extends db_table_vault {
|
||||
$favouritesort .= ", {$favalias}.itemtype DESC";
|
||||
}
|
||||
|
||||
return "{$alias}.pinned DESC $favouritesort , {$keyfield} {$direction}";
|
||||
return "{$alias}.pinned DESC $favouritesort , {$keyfield} {$direction}, {$alias}.id {$direction}";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -51,6 +51,11 @@ Feature: A user can navigate to previous and next discussions
|
||||
And I follow "Reply"
|
||||
And I set the following fields to these values:
|
||||
| Message | Answer to discussion |
|
||||
# We need to wait a bit to guarantee that the post is created after the previous ones.
|
||||
# because there is a bug in the forum_get_discussion_neighbours() when all the discussion
|
||||
# last modified times are the same. See MDL-79247 for more details. Once that bug is fixed
|
||||
# we can remove this wait.
|
||||
And I wait "1" seconds
|
||||
And I press "Post to forum"
|
||||
And I should not see "Discussion 2"
|
||||
And I should see "Discussion 3"
|
||||
|
Loading…
x
Reference in New Issue
Block a user