Explorar o código

Change "Don't know" labels to "No Challenge"

Alan Lam %!s(int64=4) %!d(string=hai) anos
pai
achega
05eca6dc68

+ 2 - 2
engine/chart_generator.php

@@ -950,7 +950,7 @@ class ChartGenerator {
 		$chart->setType("bar");
 		$chart->setType("bar");
 		$chart->setTitle("Staff Badge Worn by {$this->resolutionName}");
 		$chart->setTitle("Staff Badge Worn by {$this->resolutionName}");
 		$chart->setLabels($this->xDataLabels);
 		$chart->setLabels($this->xDataLabels);
-		$chart->addDataset("Don't know", $unknown_counts, [
+		$chart->addDataset("No challenge", $unknown_counts, [
 			"background_colours" => self::COLOUR_LIGHT_GREY
 			"background_colours" => self::COLOUR_LIGHT_GREY
 		]);
 		]);
 		$chart->addDataset("No", $no_counts, [
 		$chart->addDataset("No", $no_counts, [
@@ -1197,7 +1197,7 @@ class ChartGenerator {
 		]);
 		]);
 
 
 		if($null_rates !== null) {
 		if($null_rates !== null) {
-			$chart->addDataset("Don't Know", $null_rates, [
+			$chart->addDataset("No challenge", $null_rates, [
 				"background_colours" => self::COLOUR_CYAN,
 				"background_colours" => self::COLOUR_CYAN,
 				"border_colours" => self::COLOUR_CYAN,
 				"border_colours" => self::COLOUR_CYAN,
 				"line_tension" => 0,
 				"line_tension" => 0,

+ 1 - 1
template_processing/mystery_shop/test_pdf.php

@@ -31,7 +31,7 @@ switch($cleanliness) {
 }
 }
 
 
 $staff_badge_worn = $values["staff_badge_worn"] ?? "";
 $staff_badge_worn = $values["staff_badge_worn"] ?? "";
-if(strlen($staff_badge_worn) === 0) $staff_badge_worn = "Don't know/Not approached";
+if(strlen($staff_badge_worn) === 0) $staff_badge_worn = "No challenge";
 else $staff_badge_worn = !$staff_badge_worn ? "No" : "Yes";
 else $staff_badge_worn = !$staff_badge_worn ? "No" : "Yes";
 
 
 $staff_offered_drink = $values["staff_offered_drink"] ?? "";
 $staff_offered_drink = $values["staff_offered_drink"] ?? "";