From: <nat...@us...> - 2014-10-21 16:02:57
|
Author: nathangray Date: Tue Oct 21 18:02:45 2014 New Revision: 49114 URL: http://svn.stylite.de/viewvc/egroupware?rev=49114&view=rev Log: Prevent tree loops during updates in sub-projects Modified: trunk/projectmanager/inc/class.projectmanager_gantt.inc.php Modified: trunk/projectmanager/inc/class.projectmanager_gantt.inc.php URL: http://svn.stylite.de/viewvc/egroupware/trunk/projectmanager/inc/class.projectmanager_gantt.inc.php?rev=49114&r1=49113&r2=49114&view=diff ============================================================================== --- trunk/projectmanager/inc/class.projectmanager_gantt.inc.php (original) +++ trunk/projectmanager/inc/class.projectmanager_gantt.inc.php Tue Oct 21 18:02:45 2014 @@ -481,6 +481,12 @@ { if($params['planned_times'] == 'false') $params['planned_times'] = false; + // Sub project - handle as project, or a tree loop might occur + if($values['pe_id'] && $values['pe_app'] == 'projectmanager' && $values['pe_app_id']) + { + unset($values['pe_id']); + } + if(class_exists('stylite_projectmanager_gantt')) { $handled = stylite_projectmanager_gantt::ajax_update($values, $params); |