Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.7.8, 3.8.5, 3.9.2
-
Fix Version/s: 3.11
-
Component/s: Forum, Web Services
-
Testing Instructions:
-
Affected Branches:MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
Fixed Branches:MOODLE_311_STABLE
-
Pull from Repository:
-
Pull 3.11 Branch:
MDL-70037-311 -
Pull Master Branch:
-
Pull Master Diff URL:
Description
The old function `mod_forum_get_forum_discussion_posts` does return the attribute `modified` for every post (See here https://github.com/moodle/moodle/blob/149fdcf075fdf816b9e83f59e02a5ef20fa998fe/mod/forum/externallib.php#L468). But the new function `mod_forum_get_discussion_posts` does not (see here https://github.com/moodle/moodle/blob/a411b499b98afc9901c24a9466c7e322946a04aa/mod/forum/classes/local/exporters/post.php#L92).
Is that intended? Why is there the possibility to sort by last modified, but you don't get the attribute back? How else can you get this attribute?