Skip to content

Commit

Permalink
Fix validation rules for the customer model (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Aug 12, 2024
1 parent 1040122 commit 58f53b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/models/Customers_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public function validate(array $customer): void
}

// Make sure all required fields are provided.
$require_first_name = filter_var(setting('require_phone_number'), FILTER_VALIDATE_BOOLEAN);
$require_last_name = filter_var(setting('require_last'), FILTER_VALIDATE_BOOLEAN);
$require_first_name = filter_var(setting('require_first_name'), FILTER_VALIDATE_BOOLEAN);
$require_last_name = filter_var(setting('require_last_name'), FILTER_VALIDATE_BOOLEAN);
$require_email = filter_var(setting('require_email'), FILTER_VALIDATE_BOOLEAN);
$require_phone_number = filter_var(setting('require_phone_number'), FILTER_VALIDATE_BOOLEAN);
$require_address = filter_var(setting('require_address'), FILTER_VALIDATE_BOOLEAN);
Expand Down

0 comments on commit 58f53b1

Please sign in to comment.