phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [phpGroupWare-users] Unable to sort To Do List


From: Dave Hall
Subject: Re: [phpGroupWare-users] Unable to sort To Do List
Date: Sun, 05 Nov 2006 09:13:44 +0100

On Sat, 2006-11-04 at 12:23 -0700, Luke wrote:
> 
> Hi,
> When I try to sort items in my to do list by start date (or any field
> for that matter) it does not work. Is there an entry I can add into
> one of the files that would resolve this? I am currently running the
> most recent version and would greatly appreciate any advice. Thanks

I have had a look at this problem for you.  It is a tricky on to solve.
There is some code which fixes a problem with the hierarchy of todo
items being lost, but this fix breaks sorting.  The fix has been there
for a long time.

I think it is best that we leave it for the 0.9.18 release to fix this
problem.  If you want a hack to solve the problem, you could try ediing
the code yourself.

todo/inc/class.so.inc.php about line 161 should look like

                        }

                        if (is_array($todos))
                        {
                                return $this->keephierarchy($todos);
                        }
                        else {
                                return $todos;
                        }

change it to

                        }

                        //hack from skwashd to fix sorting, but breaks 
hierarchy 
                        return $todos;

                        if (is_array($todos))
                        {
                                return $this->keephierarchy($todos);
                        }
                        else {
                                return $todos;
                        }

I hope this does what you need.

Cheers

Dave
-- 
Dave Hall (aka skwashd)
API Coordinator
phpGroupWare
e address@hidden
w phpgroupware.org
j address@hidden
sip address@hidden
       _            ____                    __        __             
 _ __ | |__  _ __  / ___|_ __ ___  _   _ _ _\ \      / /_ _ _ __ ___ 
| '_ \| '_ \| '_ \| |  _| '__/ _ \| | | | '_ \ \ /\ / / _` | '__/ _ \
| |_) | | | | |_) | |_| | | | (_) | |_| | |_) \ V  V / (_| | | |  __/
| .__/|_| |_| .__/ \____|_|  \___/ \__,_| .__/ \_/\_/ \__,_|_|  \___|
|_|         |_|                         |_|Web based collaboration platform






reply via email to

[Prev in Thread] Current Thread [Next in Thread]