Browse Source

Merge pull request 'update auto_scheduling is false every actual_start is not null' (#161) from dev-ibnu into staging

Reviewed-on: ordo/adw-backend#161
pull/3/head
ibnu 1 year ago
parent
commit
d21b7d08b0
  1. 3
      app/Http/Controllers/ActivityController.php

3
app/Http/Controllers/ActivityController.php

@ -136,6 +136,9 @@ class ActivityController extends Controller
$objRow->type = "task"; $objRow->type = "task";
$objRow->actual_start = isset($objRow->actual_start) ? date_format(date_create($objRow->actual_start), "Y-m-d") : NULL; $objRow->actual_start = isset($objRow->actual_start) ? date_format(date_create($objRow->actual_start), "Y-m-d") : NULL;
$objRow->actual_end = isset($objRow->actual_end) ? date_format(date_create($objRow->actual_end), "Y-m-d") : NULL; $objRow->actual_end = isset($objRow->actual_end) ? date_format(date_create($objRow->actual_end), "Y-m-d") : NULL;
if(isset($objRow->actual_start)){
$objRow->auto_scheduling = false;
}
} else { } else {
$objRow->type = "project"; $objRow->type = "project";
$actualStart = $this->getActivityFirst($objRow->id); $actualStart = $this->getActivityFirst($objRow->id);

Loading…
Cancel
Save