Closed (fixed)
Project:
Diff
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Sep 2016 at 12:36 UTC
Updated:
1 Oct 2016 at 06:44 UTC
Jump to comment: Most recent, Most recent file
Lots of locations refer to a route and reconstruct it, with node special cases.
Recent improvements on navigation and selection duplicated even more code.
Don't building the routes with repeating custom code when building the navigation.
We have a diffRoute on the generic revision controller that is dedicated for this. Make it static or convert it to a trait and reuse it. :-)
Change in diffRoute.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | use_diffroute_instead-2799923-10.patch | 5.51 KB | toncic |
| #9 | interdiff-2799923-4-9.txt | 2.03 KB | toncic |
| #9 | use_diffroute_instead-2799923-9.patch | 5.47 KB | toncic |
| #6 | interdiff-2799923-2-4.txt | 3.05 KB | toncic |
| #4 | interdiff-2799923-2-4.txt | 0 bytes | toncic |
Comments
Comment #2
toncic commentedI switched to use diffRoute instead of some duplicated code.
Comment #4
toncic commentedTrying to fix test failing.
Comment #5
johnchqueExtra space between function and diffRoute
Don't remove the layout_options here.
Comment #6
toncic commentedSorry for empty interdiff.
Comment #8
johnchqueThis should be an array, keep the one that was before.
Comment #9
toncic commentedThis should works.
Comment #10
toncic commentedRebase patch.
Comment #12
miro_dietikerCommitting this.
Dunno if it's worth making it a trait. It's about path management that is highly related with the Controller.