From: GitHub <no...@gi...> - 2012-05-18 18:25:48
|
Branch: refs/heads/master Home: https://github.com/mantisbt/mantisbt Commit: d12e5e9b2343550704b4edf865c3241a61bd33d5 https://github.com/mantisbt/mantisbt/commit/d12e5e9b2343550704b4edf865c3241a61bd33d5 Author: Damien Regad <dam...@me...> Date: 2012-05-18 (Fri, 18 May 2012) Changed paths: M core/bug_api.php Log Message: ----------- Record reporter+submitted date in extended info first revision history When updating any of the "extended info" fields (Description, Steps To Reproduce, Additional Information), the history of modifications is saved in the mantis_bug_revision_table. When the first change is made since issue creation, an additional, "initial" revision record is created to keep track of the original value. Prior to this, the record was saved with incorrect author and timestamp information: current user and date of modification, instead of the bug's reporter and date of submission. Fixes #14272 Commit: ce6d92de07fc370c5e69dce4794f8a60d180e6a2 https://github.com/mantisbt/mantisbt/commit/ce6d92de07fc370c5e69dce4794f8a60d180e6a2 Author: Damien Regad <dam...@me...> Date: 2012-05-18 (Fri, 18 May 2012) Changed paths: M bug_revision_view_page.php M core/bug_revision_api.php Log Message: ----------- Remove unnecessary use of array_reverse() to display bug revisions Prior to this commit, in bug_revision_view_page.php the array returned by functions bug_revision_list() and bug_revision_like() was sytematically reversed by calling array_reverse(). Since these 2 functions are not used anywhere else, it is more efficient to modify the SQL so that the functions sort the list as it should be right from the start, thus avoiding the calls to array_reverse(). Note that the ORDER BY clause has been changed from 'timestamp' to 'id', this guarantees correct display order in case the timestamps are equal since by definition the id is a sequential number increased with each revision as it is recorded. Fixes #14273 Compare: https://github.com/mantisbt/mantisbt/compare/f087535...ce6d92d |