gtd-php
Welcome, Guest. Please login or register.
May 23, 2013, 01:38:16 AM

Login with username, password and session length
Search:     Advanced search
1780 Posts in 315 Topics by 399 Members
Latest Member: chip53
* Home Help Search Calendar Login Register
+  gtd-php
|-+  gtd-php
| |-+  gtd-php dev
| | |-+  parent picker
« previous next »
Pages: [1] Print
Author Topic: parent picker  (Read 1410 times)
gbeck
Jr. Member
**
Posts: 3


View Profile
« on: May 29, 2008, 08:06:54 AM »

I'm trying out v0.9, which I really like, but I miss the parent picker dialog that popped up in 0.8. Is there any way to turn it back on? Thanks...
Logged
Andrew
Administrator
Hero Member
*****
Posts: 377


View Profile
« Reply #1 on: May 29, 2008, 08:29:32 AM »

Hi there,
glad you like the work so far.

To turn the parent picker on, go to the preferences screen, and turn on useLiveEnhancements

And please do be very careful with 0.9: it's alpha sofware!  I back up the data I use on it daily.
Logged
gbeck
Jr. Member
**
Posts: 3


View Profile
« Reply #2 on: May 29, 2008, 08:57:25 AM »

Perfect, thanks!

In trying to figure this out I saw some unexpected behavior when working with live enhancements off. In creating a new project or editing an existing one, the only options in the parents select box are goals. In other words, you can't pick another project as a parent.

The parents in the select box are set by item.php, line 122:

    $values['ptypefilterquery']=' AND '.sqlparts('typefilter',array('type'=>$ptypes[0]));

The end of this line sets the possible types to $ptypes[0], which is the first element of the potential types array. The first element is "o" for goals, so only goals are shown and you can't choose projects. The query should include all possible types, not just the first one. Perhaps line 122 should be:

    $values['ptypefilterquery']=' AND '.sqlparts('typeinlist', array('types'=>implode('',$ptypes)));

Thanks and keep up the great work!
Logged
Andrew
Administrator
Hero Member
*****
Posts: 377


View Profile
« Reply #3 on: May 29, 2008, 11:27:18 AM »

Quote
I saw some unexpected behavior when working with live enhancements off. In creating a new project or editing an existing one, the only options in the parents select box are goals. In other words, you can't pick another project as a parent.

In a way, that's deliberate. The select box was the old behaviour. We introduced the dynamic box because to get several different item types was going to require more space, and more information - it's useful to know whether you're selecting a project or a goal.

Quote
line 122 should be:
Code:
$values['ptypefilterquery']=' AND '.sqlparts('typeinlist', array('types'=>implode('',$ptypes)));

Thanks, I'll give that a spin, see how it looks.
Logged
gbeck
Jr. Member
**
Posts: 3


View Profile
« Reply #4 on: May 29, 2008, 12:34:31 PM »

Given your explanation for the behavior, my quick and dirty solution will probably not work for you. Let me play with it some more.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!