From 168e9266fe3b71bde1469044e6e53ca34191f162 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 29 Sep 2025 12:28:18 +0530 Subject: [PATCH] Fix plant code validation logic in UserImporter --- app/Filament/Imports/UserImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Imports/UserImporter.php b/app/Filament/Imports/UserImporter.php index a615845..59a7d9b 100644 --- a/app/Filament/Imports/UserImporter.php +++ b/app/Filament/Imports/UserImporter.php @@ -56,7 +56,7 @@ class UserImporter extends Importer $warnMsg = []; $plant = null; if (Str::length($this->data['plant']) > 0) { - if (Str::length($this->data['plant']) < 4 || !is_numeric($this->data['plant'] || !preg_match('/^[1-9]\d{3,}$/', $this->data['plant']))) { + if (Str::length($this->data['plant']) < 4 || !is_numeric($this->data['plant']) || !preg_match('/^[1-9]\d{3,}$/', $this->data['plant'])) { $warnMsg[] = "Invalid plant code found!"; } else {