Fix for country save on Customer info not handling BaseEnom correct exception
This commit is contained in:
parent
f41b6ae644
commit
97ccbf0b1e
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class CustomerInfo extends Model
|
|||
if (ctype_digit($customerInfo->country)) {
|
||||
try {
|
||||
$customerInfo->newcountry = Country::make((int)$customerInfo->country);
|
||||
} catch (\TypeError $e) {
|
||||
} catch (\BadMethodCallException $e) {
|
||||
// TODO change this when country column is updated
|
||||
// Set afghanistan as default country for now
|
||||
$customerInfo->newcountry = Country::afghanistan();
|
||||
|
|
@ -68,7 +68,7 @@ class CustomerInfo extends Model
|
|||
if (ctype_digit($customerInfo->country)) {
|
||||
try {
|
||||
$customerInfo->newcountry = Country::make((int)$customerInfo->country);
|
||||
} catch (\TypeError $e) {
|
||||
} catch (\BadMethodCallException $e) {
|
||||
// TODO change this when country column is updated
|
||||
// Set afghanistan as default country for now
|
||||
$customerInfo->newcountry = Country::afghanistan();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue