PDA

View Full Version : My Tasks To Do not working properly


admello12
15-07-05, 02:58 AM
On the following page...
/index.php?m=tasks&a=todo&date=0

I should be able to select a user, and view tasks, with whatever options I choose, however....

When I select a person, with tasks, the page refreshses, the menu resets to the first user, but no tasks show up.

Please advise!

Thanks all!

~~~~~~~~~~~~~~~~~
Base install, 2.0.1 all else works...

pedroa
19-07-05, 10:28 AM
See
http://www.dotproject.net/mantis/bug_view_advanced_page.php?bug_id=0001003

no tasks show up because date=0...

Pedro A.

helen
26-01-06, 04:31 AM
I am having the same problem, and the thread noted did not help.

I click on "Todo" and I can only see the first users tasks. The form keeps setting date=0.

How do I make it show my own tasks? This is very frustrating.



See
http://www.dotproject.net/mantis/bug_view_advanced_page.php?bug_id=0001003

no tasks show up because date=0...

Pedro A.

setht
11-02-06, 01:15 AM
Ok, while all this solves the problem of the date resetting on the Today view, it doesn't really address the initial post.

From the login screen:

Login as (in my case) an admin user
Click the 'ToDo' link
The list of tasks for the logged in user is shown. However, the user in the select box for 'Show ToDo for:' is the first user (alphabetically by last name). This means that, if I click 'Pinned Only', I only see pinned tasks for that user. If I then select me from the drop-down list, then my pinned tasks are shown, but the select box once again shows the wrong user.

So, to recap, any time you select a checkbox on the ToDo page, you must then select the user you were viewing when you clicked it from the dropdown box to get what you needed.

keldegar
16-02-06, 04:49 AM
Ok, while all this solves the problem of the date resetting on the Today view, it doesn't really address the initial post.

From the login screen:

Login as (in my case) an admin user
Click the 'ToDo' link
The list of tasks for the logged in user is shown. However, the user in the select box for 'Show ToDo for:' is the first user (alphabetically by last name). This means that, if I click 'Pinned Only', I only see pinned tasks for that user. If I then select me from the drop-down list, then my pinned tasks are shown, but the select box once again shows the wrong user.

So, to recap, any time you select a checkbox on the ToDo page, you must then select the user you were viewing when you clicked it from the dropdown box to get what you needed.

seems like someone forgot to do a if (is that user) echo "selected"

for that option in the select box. im trying to find it. when i do, i will post the solution.

I found the code in question, its in modules/tasks/todo_tasks_sub.php

if (($rows = db_loadList( $usersql, NULL )))
{
foreach ($rows as $row)
{
if ( $user_id == $row["user_id"])
echo "<OPTION VALUE='".$row["user_id"]."' SELECTED>".$row["contact_last_name"].', '.$row["contact_first_name"];
else
echo "<OPTION VALUE='".$row["user_id"]."'>".$row["contact_last_name"].', '.$row["contact_first_name"];
}
}

however it IS checking if the user is that user.. but only its not writing SELECTED. will update again.

UPDATE: it's because $userID is blank. Im not sure where to get the userID from.

!--------------------------------------------------------------------------------------------------------------------------------
UPDATE2: $user_id is not set as a global in modules/tasks/todo_tasks_sub.php. Here is the fix:

change line 3 from:
GLOBAL $m, $a, $date, $other_users, $showPinned, $showArcProjs, $showHoldProjs, $showDynTasks, $showLowTasks, $showEmptyDate;

to:
GLOBAL $user_id,$m, $a, $date, $other_users, $showPinned, $showArcProjs, $showHoldProjs, $showDynTasks, $showLowTasks, $showEmptyDate;

MacOfTheEast
16-02-06, 05:28 AM
seems like someone forgot to do a if (is that user) echo "selected"It pays to stay current. The problem that you are working on was fixed back in April with the release of version 1.50 of modules/tasks/todo.php The description of the change is, "With user_id not global, it was causing admin "show todo for" list to keep resetting." The latest stable_2 version, however, is 1.50.2.2 of August 28.

(Again, Karen :)) I suggest that you upgrade all files in /modules/tasks to stable_2 as some of them have been revised in the last two days!

MOTE

keldegar
16-02-06, 09:21 AM
you guys really should release a new version on the homepage.. I installed what is available on the page, which is version 2.0.1 ... what is this 1.5 you're talking about? What is stable_2 ?

Karen
16-02-06, 09:29 AM
you guys really should release a new version on the homepage.. I installed what is available on the page, which is version 2.0.1 ... what is this 1.5 you're talking about? What is stable_2 ?

stable_2 is the CVS branch: http://docs.dotproject.net/tiki-index.php?page=Accessing+dotproject+and+dotmods+CV S

1.5etc is the version string of the particular script / file

We're aware that a bug fix release is overdue: http://www.saki.com.au/modules.php?op=modload&name=News&file=article&sid=42&mode=thread&order=0&thold=0

fulltilt
16-02-06, 09:54 AM
you guys really should release a new version on the homepage.. I installed what is available on the page, which is version 2.0.1 ... what is this 1.5 you're talking about? What is stable_2 ?
Ditto !!! ... I only downloaded the "latest" version a few days ago on a recommendation that this is the best project software around - and it's really bad! ... Version 2.0.1 was posted on 2005-04-08 22:17 that's been around for 10 months now and I have to "upgrade all files in /modules/tasks to stable_2 as some of them have been revised in the last two days!"

Is this using the CVS somehow ?
Is there a quick "how to" I can read ?

I've always avoided the "bleeding edge" (aka CVS) and gone for a stable version. Hence why I downloaded something that was 10 months old.

fulltilt
16-02-06, 10:21 AM
Is there an easy way to download all these files ?

http://cvs.sourceforge.net/viewcvs.py/dotproject/dotproject/?only_with_tag=stable_2

MacOfTheEast
16-02-06, 01:27 PM
Is there an easy way to download all these files ?

http://cvs.sourceforge.net/viewcvs.py/dotproject/dotproject/?only_with_tag=stable_2

You can get the nightly stable_2 snapshot at ftp://www.bodcon.com/pub/dotproject-stable_2.tar.bz2

MOTE

fulltilt
16-02-06, 02:21 PM
Thanks for the reply, but ...

- I can't ftp via my corporate firewall, is there any other way to get to this data ?

- Where could I have learned to download from bodcon.com myself ? Is it something I should have known ?

- A nightly snapshot of a stable version ? That sounds awfully like there are still bugs - no ?

What I really want is a STABLE version that a LOT of other people use. Should I persist with v2 or go back to the latest v1 ? (what features would I loose?). v2 looks perfect for what I need, and seems to have brilliant functionality and lots of it, but I can't implement it into a production environment if there are nightly snapshot releases :( :(

Karen
16-02-06, 03:29 PM
Thanks for the reply, but ...

- I can't ftp via my corporate firewall, is there any other way to get to this data ?

http://dotproject.sourceforge.net/dotproject-stable_2.tar.bz2 is the other link

- Where could I have learned to download from bodcon.com myself ? Is it something I should have known ?

Mac only put that up the ftp link in the last few hours (or at least we talked about it this morning my time).

Both of these items are provided as a courtesy to save people from pulling the files from the CVS which is what we normally suggest.

- A nightly snapshot of a stable version ? That sounds awfully like there are still bugs - no ?

You can see a list of the remaining open bugs on http://bugs.dotproject.net

What I really want is a STABLE version that a LOT of other people use. Should I persist with v2 or go back to the latest v1 ? (what features would I loose?). v2 looks perfect for what I need, and seems to have brilliant functionality and lots of it, but I can't implement it into a production environment if there are nightly snapshot releases :( :(

We're always in the process of resolving bugs - the release versions that we do are just "snapshots" at a point in the development cycle. That's why 2.0.1 and the to be announced release 2.0.2 are called bug releases. This is all explained at http://docs.dotproject.net/tiki-index.php?page=Release+Process


It has been a while since we did 2.0.1 There are a myriad of reasons for the delay not least of which have been complications with third party products, resourcing issues with the dev team, etc

We are trying to get 2.0.2 released at the moment but we're still having problems with short to intermediate term resource availability.

fulltilt
16-02-06, 09:24 PM
Thanks for the info Karen, but that sort of leads on to my next question ...

If no one is using 2.0.1, what are they using ? Are they using/sitting on a v.1.x copy that was installed before it got taken off the download list ?

I understand the problems with open source development, but it sounds liek 2.0.2 isn't that far away - at a guess how close do you think it really is ?

Karen
17-02-06, 07:16 AM
Thanks for the info Karen, but that sort of leads on to my next question ...

If no one is using 2.0.1, what are they using ? Are they using/sitting on a v.1.x copy that was installed before it got taken off the download list ?

I understand the problems with open source development, but it sounds liek 2.0.2 isn't that far away - at a guess how close do you think it really is ?

I'm not sure where you get the idea that no one is using 2.0.1 - I'd assume that a large percentage of people are either using that as it comes or with updates from the CVS as issues are resolved. Nobody's taken v1.x off anything - it's still there although it's extremely old.

No announcements on the release date - check the developers blog for details.

fulltilt
17-02-06, 09:33 AM
I'd assume that a large percentage of people are either using that as it comes or ...
But as this thread shows, if you just download from the site with no CVS updates, you can't use it.

I do like the software, it looks great, but as I said I just can't use it in a production environment yet.

fulltilt
17-02-06, 09:57 AM
http://dotproject.sourceforge.net/dotproject-stable_2.tar.bz2 is the other link

OK, this makes a WORLD of difference :)

Still a few problems that I will start other threads to fix.