Updated validation checks in WorkGroupMasterImporter to ensure name and operation number are not empty
This commit is contained in:
@@ -66,7 +66,7 @@ class WorkGroupMasterImporter extends Importer
|
||||
$warnMsg[] = "Plant not found";
|
||||
}
|
||||
|
||||
if (Str::length($this->data['name']) < 0) { //|| !ctype_alnum($this->data['description'])
|
||||
if (Str::length($this->data['name']) <= 0) { //|| !ctype_alnum($this->data['description'])
|
||||
$warnMsg[] = "Invalid name found";
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class WorkGroupMasterImporter extends Importer
|
||||
$warnMsg[] = "Description should be less than 44 digits.";
|
||||
}
|
||||
|
||||
if (Str::length($this->data['operation_number']) < 0) {
|
||||
if (Str::length($this->data['operation_number']) <= 0) {
|
||||
$warnMsg[] = "Invalid operation number found";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user