excuseme, i have a problem, when i use more than one filter method in my code the subtask (parent task) doesn’t apper (only the principal task):
<?php
include("main_db.lib");
include("session.lib");
include ('codebase/connector/gantt_connector.php');
//include ('codebase/connector/db_mysqli.php');
CheckUser();
$dbtype = "MySQL";
$res=mysql_connect("localhost","*******","*********");
mysql_select_db("gantt");
$gantt = new JSONGanttConnector($res, $dbtype);
$gantt->enable_log("log_gantt.txt",true);
$gantt->enable_order("end_date");
$gantt->filter("user_id",$_SESSION["userid"]);
$gantt->filter("table_name", "Linea LS");
$gantt->render_links("gantt_links","id","source,target,type");
$gantt->render_table("gantt_tasks","id","start_date,duration,text,progress,sortorder,parent,end_date,task_id,table_name,user_id");
?>
but the query in the log seems correct:
====================================
Log started, 14/01/2015 03:07:31
====================================
SELECT `id`,`start_date`,`duration`,`text`,`progress`,`sortorder`,`parent`,`end_date`,`task_id`,`table_name`,`user_id` FROM gantt_tasks WHERE `user_id` = '248' AND `table_name` = 'Linea LS' ORDER BY end_date
SELECT `id`,`source`,`target`,`type` FROM gantt_links
Done in 0,0058889389038086s
on the other way when i use only one filter method, sub task appear correctly.
Can you help me?
ps - i have just tried to execute the select query directly in my database and work good.