Vote #80011
完了Serialize group_by and totalable_names in Query#as_params
0%
説明
Problem
- configure a (on the fly, not saved) issue query, group by anything and have any totals displayed
- click on an issue in the resulting issue list
- go back to the list via the @x of y@ link between the prev/next links
Both grouping and configured total values are now lost since these settings are not contained in the URL parameters of the link.
Solution
By adding @:group_by@ and @:t@ keys to @Query#as_params@, the query configuration is fully preserved (@build_from_params@ already checks for those keys).
Patch courtesy of "Planio":https://plan.io/redmine-hosting
journals
Confirmed the problem and the attached patch works fine. Setting the target version to 3.4.11.
--------------------------------------------------------------------------------
Committed the fix. Thank you for offering the patch.
--------------------------------------------------------------------------------