Skip to content
Permalink
Browse files

Fix to allow clearing dependencies in the task edit form.

  • Loading branch information...
carlosazevedo committed Mar 15, 2013
1 parent 04e91ed commit 1c7b0599c02bd9c5a44e66f9586b173ce0718783
Showing with 4 additions and 2 deletions.
  1. +4 −2 modules/tasks/do_task_aed.php
@@ -106,17 +106,19 @@
if (!$result) {
$AppUI->setMsg($obj->getError(),UI_MSG_ERROR, true);
$AppUI->holdObject($obj);
$AppUI->redirect('m=tasks&a=addedit');
$AppUI->redirect('m=tasks&a=addedit&task_id='.$task_id);
}
if ($result) {
if (isset($hassign)) {
$obj->updateAssigned($hassign, $hperc_assign_ar);
}
// This call has to be here to make sure that old dependencies are
// cleared on save, even if there's no new dependencies
$obj->updateDependencies($hdependencies, $obj->task_id);
if (isset($hdependencies) && '' != $hdependencies) {
// there are dependencies set!
$obj->updateDependencies($hdependencies, $obj->task_id);
$nsd = new w2p_Utilities_Date($obj->get_deps_max_end_date($obj));
if (isset($start_date)) {

0 comments on commit 1c7b059

Please sign in to comment.
You can’t perform that action at this time.