Parent Tasklist lists all tasks and subtasks equally
mj2308 - June 2, 2006 - 10:30
| Project: | Tasklist |
| Version: | HEAD |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Whenever you try to create a subtask, the Parent Tasklist with which you choose the parent task lists all tasks and subtasks equally. Say you have
Main tasklist
- Task 1
-- My task
-Task 2
-- Your task
and you wish to create a new subtask under 'My task'. When you try to create a new sub task, the 'Parent Tasklist' list shows
Main tasklist
Task 1
My Task
Task 2
Your Task
without any indentations or any indication that Task 1 is a subtask of the Main tasklist etc (in fact I believe the listing is random and does not even put say My Task under Task 1)

#1
This patch doesn't exactly fix your problem, but it might prevent it in most cases.
When you click on the link 'Add new sub-task', the parent task will be selected by default.
Also, I added a alphabetical sorting rule for the user list, which is otherwise very messy when you have lots of users.
Patch is against HEAD. Could be ported to 4.7 if necessary.
#2
this patch has been committed to HEAD. Nevertheless, some more work needs to be done on the parent tasklist list.
#3
You might want to look at some of the code used to create the tree in tasks_advanced. It might be helpful in creating a fast tree-like structure.
Otherwise taxonomy also has terms and subterms which show up indented in the drop down list.