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

scor - June 7, 2007 - 18:36
Version:4.7.x-1.x-dev» HEAD
Status:active» reviewed & tested by the community

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.

AttachmentSize
tasks.newtask.66865.patch 939 bytes

#2

scor - June 19, 2007 - 20:15
Status:reviewed & tested by the community» active

this patch has been committed to HEAD. Nevertheless, some more work needs to be done on the parent tasklist list.

#3

moonray - April 16, 2008 - 14:48

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.

 
 

Drupal is a registered trademark of Dries Buytaert.