Task Dependencies aren't enforced?

4 views
Skip to first unread message

Nikki Erwin C. Ramirez

unread,
Oct 14, 2009, 11:55:15 PM10/14/09
to simple-g...@googlegroups.com
I first created one task, say "Detailed Task", and then created another, "Parent Task".  I edited Parent Task and added Detailed Task as a Dependency.  I was still able to close Parent Task, even if I haven't closed Detailed Task.

Is is possible to enforce that I can't close Parent Task unless all of its Dependencies have been closed?

Thomas

unread,
Oct 15, 2009, 3:33:39 PM10/15/09
to Simple Groupware
Hello,

you can code this with:
<rowvalidate name="v1" fields="closed,dependancy"
function="forcetaskdependancy" />

and "<sgs-dir>/bin/core/functions_validate.php":

static function forcetaskdependancy($data,$params) {

// debug
print_r( $data );

if ( <ok> ) return '';
return 'some error';
}

bye
Thomas

On Oct 15, 5:55 am, "Nikki Erwin C. Ramirez" <necrami...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages