Summary | Task list not displayed correctly with parent/child tasks |
Queue | Nag |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | kaosbunny (at) gmail (dot) com |
Created | 06/16/2007 (6660 days ago) |
Due | |
Updated | 06/27/2007 (6649 days ago) |
Assigned | 06/17/2007 (6659 days ago) |
Resolved | 06/27/2007 (6649 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
5.2.3 and wasn't able to reproduce exactly your problem, but instead
one of the sub tasks was completely missing. When I tried to create a
stripped down version of the looping code, everything worked fine of
course. PHP sucks.
related to my PHP version (5.1.6). The major difference before and
after my loop is that the indices are back to being id keys instead of
being numerical. (It's the Nag_Task::sort() that makes them numerical
when rebuilding.)
Maybe it's related.. Don't know at all. I'm really confused over this one.
all, because what you added happens exactly the same a few a lines
below. If not, you don't have the latest code.
New Attachment: list.php.patch
and sub-tasks, even in the search results.
a workaround to fix it.
Seems that creating a new Nag_Task() and adding the tasks by looping
through $tasks resolves the issue. (Basically what is done with the
search, but without the search params.)
I realise this is not a confirmed bug, but if anyone else has this
problem, here is a patch for it.
New Attachment: pear-list.txt
Trying to use var_dump() to study object structure differences didn't
prove extremely successful.
If AAA is ticked as "completed", all subtasks are rendered correctly.
I have tried this with a fresh cvs install, and it still fails.
Is my configuration broken in some way? Are there any PEAR packages I
might try to upgrade?
I did
cvs update framework
cd framework
php -q install-packages.php
Without anything changing.
Server setup:
Apache 2.0.55
MySQL 5.0.24a
PHP 5.1.6
Kernel 2.6.17-10-server [Ubuntu]
(Complete list of PEAR packages attached to comment.)
We use IMP to authenticate with a Postfix/MySQL setup, and use SQL as
datatree backend for Horde.
Please let me know if there is any more info that can be helpful in
trying to locate why this bug appears here.
On a sidenote, and I understand this is a completely different issue
and should be reported, but I suspect it might be related snice noone
else seems to have noticed it:
When I try to delete a task I get the error:
Fatal error: Cannot use object of type PEAR_Error as array in
/usr/share/colab/horde/nag/task.php on line 21
It seems that the $tasklist_id argument passed to _delete() is NULL
(which comes from the $vars->get('old_tasklist')) when it should be
set to my userid and makes the Nag::GetTask() to fail.
This will be posted as a separate ticket with some more debug info if
it's found to be unrelated.
But it feels like I have broken something somewhere, I just can't
figure out where since it's a fresh install.
State ⇒ Feedback
and sub-tasks, even in the search results.
Assigned to Jan Schneider
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Task list not displayed correctly with parent/child tasks
Queue ⇒ Nag
State ⇒ Unconfirmed
It seems that tasks are not displayed correctly when you try to assign
parent tasks to them.
First subtask disappear in standard list view, but appears in search
results (i.e. when searching for just a space so all tasks are matched).
However, in search results the subtasks are in the wrong order, so the
tree/level-graphics end up being wrong.
Details:
Imagine four tasks as an example; A, B, C and D.
Now, if we make A the parent of B and C, we would expect something like
A
|- B
`- C
D
But the displayed result is
A
`- C
D
However, if I search for " " (just a space to match all tasks) the
result shown is this:
A
`- C
|- B
D
Unfortunately the parent data doesn't appear to be saved with CSV
export, so no live example data can be included.
Do not hesitate to contact me for further explaination or details.