|
|
@@ -1,14 +1,16 @@
|
|
|
<?php
|
|
|
|
|
|
$field_names = [
|
|
|
- "Project Name",
|
|
|
- "Test Status", "Test Result",
|
|
|
+ "Test Result",
|
|
|
"Location Name", "Address", "Region", "Internal ID", "Area Manager",
|
|
|
|
|
|
"Date",
|
|
|
];
|
|
|
|
|
|
foreach($fields as $field) {
|
|
|
+ $customer_export = $field->customerExport ?? true;
|
|
|
+ if(!$customer_export) continue;
|
|
|
+
|
|
|
$field_names[] = $field->label;
|
|
|
}
|
|
|
|
|
|
@@ -32,8 +34,6 @@ foreach($tests as $test) {
|
|
|
$travel_costs = "";
|
|
|
|
|
|
$output = [];
|
|
|
- $output[] = $project->name;
|
|
|
- $output[] = $test->getStatusText();
|
|
|
|
|
|
if(!is_null($test->pass)) {
|
|
|
|
|
|
@@ -66,6 +66,10 @@ foreach($tests as $test) {
|
|
|
$output[] = $test_date;
|
|
|
|
|
|
foreach($fields as $field) {
|
|
|
+
|
|
|
+ $customer_export = $field->customerExport ?? true;
|
|
|
+ if(!$customer_export) continue;
|
|
|
+
|
|
|
$field_name = $field->name;
|
|
|
$value = isset($test->$field_name) ? $test->$field_name : ($values[$field->name] ?? "");
|
|
|
|