From e717f1e7802a35e1f2fa32c0679223382e6ab542 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 29 Apr 2025 19:21:18 +0100 Subject: [PATCH] Removed logging Signed-off-by: snipe --- app/Models/CustomFieldset.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Models/CustomFieldset.php b/app/Models/CustomFieldset.php index c06f4dc0e..bf0481768 100644 --- a/app/Models/CustomFieldset.php +++ b/app/Models/CustomFieldset.php @@ -74,10 +74,7 @@ class CustomFieldset extends Model public function displayAnyFieldsInForm($form_type = null) { if ($this->fields) { - // \Log::error(print_r($this->fields, true)); - \Log::error($this->fields->where('display_audit', '1')->count()); - \Log::error($this->fields->where('display_checkin', '1')->count()); - \Log::error($this->fields->where('display_checkout', '1')->count()); + switch ($form_type) { case 'audit': return $this->fields->where('display_audit', '1')->count() > 0;