Closed (fixed)
Project:
Project issue tracking
Version:
5.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Jan 2006 at 18:23 UTC
Updated:
15 Jan 2008 at 20:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
dries commentedIs that 'taxonomy[0]' guaranteed to be correct? Are we sure it can never be 'taxonomy[1]'? Otherwise looks good to me.
Comment #2
dwwDoesn't apply anymore. Furthermore, there's a new helper method to get this right, project_project_set_breadcrumbs(). The only occurances of this problem are now to be found in project_issue.module's issue.inc, so moving this over to the right queue.
Comment #3
hunmonk commentedtaking a crack at this one. not sure if i've used the new function totally correctly or not. needs testing.
Comment #4
hunmonk commentedand the patch
Comment #5
dwwmostly looks good on visual inspection, but i don't understand why you modified project_project_set_breadcrumb() to return the breadcrumb array, too. can you either remove that from the patch or explain why you did it? thanks!
Comment #6
ChrisKennedy commentedThe project_issues_statistics() change was fixed by Derek at http://drupal.org/node/185378 but should the second change still be made?
Regarding #5, the breadcrumb apparently needs to be returned because on the next line it is used in menu_set_location.
Comment #7
dwwmenu_set_location() shouldn't be used at all, i didn't notice that in the initial patch. drupal_set_breadcrumb() is vastly superior, and lo, that's what project_project_set_breadcrumb() does. ;) So:
A) The change to return the breadcrumb array should be removed from this patch
B) The call to menu_set_location() should also be removed.
Whoops about #185378, which was sort of duplicate with this. ;) I kinda remember this issue existing, but I couldn't find it the other night when I submitted 185378... oh well. We can still clean up project_issue_view() in here.
Comment #8
hunmonk commentedattached cleans up project_issue_view(), and also the breadcrumb trail at /comment/reply for project issues.
each of the respective functions that the breadcrumb code is in can be called from either a main issue or from a comment reply (the comment reply form can appear on the issue page, and project_view() is called to display the issue preview below a comment followup), so i've iimplemented a helper function which checks for which kind of page we're on, and sets the trail appropriately.
Comment #9
dwwlovely. code is good (though i'd prefer a final newline after the closing } for project_issue_set_breadcrumb()). tested both with the comment form displaying under the issue node, and on a separate page. works beautifully. thanks.
Comment #10
hunmonk commentedfixed in HEAD. if we want this to go into older versions, the patch must be re-rolled
Comment #11
hunmonk commentedpatch for 5.x-1.x -- i don't have a 5.x-1.x install handy, can somebody test this for me?
Comment #12
hunmonk commentedtested, and committed to 5.x-1.x.
Comment #13
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.