From 50119240b98cc479b34db03ec557d7aa0cd641b6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 1 Nov 2021 16:12:10 +1100 Subject: [PATCH] Minor fixes for client country code rules --- app/Http/ValidationRules/Client/CountryCodeExistsRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/ValidationRules/Client/CountryCodeExistsRule.php b/app/Http/ValidationRules/Client/CountryCodeExistsRule.php index 63aa2c0dfc..f8fd208971 100644 --- a/app/Http/ValidationRules/Client/CountryCodeExistsRule.php +++ b/app/Http/ValidationRules/Client/CountryCodeExistsRule.php @@ -49,7 +49,7 @@ class CountryCodeExistsRule implements Rule private function checkIfCodeExists($value) : bool { $country = Country::where('iso_3166_2', $value) - ->orWhere('iso_3166_2', $value) + ->orWhere('iso_3166_3', $value) ->exists(); if ($country)