From f41af33b13cec6cb5a5ba5e1b91a8c64d7c54f0b Mon Sep 17 00:00:00 2001 From: pavlosb Date: Sun, 30 Jun 2024 12:39:28 +0300 Subject: [PATCH] Update inspectionform.php --- application/views/inspectionform.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/views/inspectionform.php b/application/views/inspectionform.php index ffba8e5..cd752f1 100644 --- a/application/views/inspectionform.php +++ b/application/views/inspectionform.php @@ -16,6 +16,10 @@ $name_section = $langprefix."name_section"; $name_cp = $langprefix."name_cp"; $helptext_cp = $langprefix."helptext_cp"; + $ev = array("electric", "pluginpetrol", "plugindiesel"); + if (!in_array($inspection->fueltyp_vhcl, $ev)) { + unset($checkpoints[0]); +} ?>