Author Topic: Subtasks always collapse when a task detail view is opened  (Read 2128 times)

negg

  • Newbie
  • *
  • Posts: 18
    • View Profile
Subtasks always collapse when a task detail view is opened
« on: August 24, 2009, 11:03:50 am »
Makes subtasks nearly useless: when a task detail view is opened from a task list with expanded subtasks and you click on "back", the list view is collapsed completely! So you have to expand all the branches again to get to the view you had before.

I think the concept of opening tasks with a internal request instead of a real link makes it necessary to store the expand/collapse state of the list.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Subtasks always collapse when a task detail view is opened
« Reply #1 on: August 24, 2009, 07:04:57 pm »
It would be better, I agree. It's not simple to do but we will do it some day.

A quick workaround that may help you would be to open some views in a new tab, so that the task's view remains. To do so you would have to add this code on all views that you want to open in a new (opengoo) tab:

Code: [Select]
ajx_set_panel('new tab');
For example, you should add it in 'application/controllers/TaskController.class.php' on functions 'view_task', 'add_task' and 'edit_task'. The same for MilestoneController and functions 'view', 'add' and 'edit' and all other views that are opened from the Tasks view (templates?).

Regards.