|
|
@@ -342,6 +342,7 @@ for($i = 0; $data = fgetcsv($handle); $i++) {
|
|
|
// Archive missing locations
|
|
|
if($archive_missing) {
|
|
|
foreach($missing_locations as $missing_location) {
|
|
|
+ echo sprintf("Location#%s - %s archived.\n", $missing_location->id, $missing_location->name);
|
|
|
$missing_location->archived = 1;
|
|
|
$missing_location->commit();
|
|
|
}
|
|
|
@@ -371,6 +372,9 @@ foreach($projects as $project) {
|
|
|
|
|
|
foreach($tests as $test) {
|
|
|
$location = $test->getLocation();
|
|
|
+
|
|
|
+ echo "Test#{$test->id} for Location#{$location->id} in Project#{$project->id} should be removed.\n";
|
|
|
+
|
|
|
fputcsv($handle, [
|
|
|
$project->name,
|
|
|
$location->id,
|