|
|
@@ -85,7 +85,7 @@ if($submit) {
|
|
|
|
|
|
$test = $location_test_array[$location->id] ?? false;
|
|
|
|
|
|
- $customer_slug = str_replace("-", "_", Util::slug($customer->name));
|
|
|
+ $customer_slug = Util::slug($customer->name, "_");
|
|
|
|
|
|
/** @var User $tester */
|
|
|
$tester = null;
|
|
|
@@ -106,7 +106,7 @@ if($submit) {
|
|
|
$formatted_start_dts = date("d/m/Y H:i", $unix_start);
|
|
|
}
|
|
|
|
|
|
- if($test->pass === null) {
|
|
|
+ if($test->isPending()) {
|
|
|
$icon_file = "{$customer_slug}_pending.png";
|
|
|
|
|
|
$unix_due = null;
|
|
|
@@ -227,7 +227,7 @@ if($submit) {
|
|
|
$pass_icon = $test->getPassIcon();
|
|
|
}
|
|
|
|
|
|
- $filename = str_replace("-", "_", Util::slug($customer->name));
|
|
|
+ $filename = Util::slug($customer->name, "_");
|
|
|
|
|
|
$icon = null;
|
|
|
if(file_exists("public/img/markers/$filename.png")) {
|