Merge pull request #5414 from bagisto-europe/5406

fixed #5406
This commit is contained in:
Glenn Hermans 2021-12-11 13:27:49 +01:00 committed by GitHub
commit bf11dccb28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class CustomerAddressRequest extends FormRequest
'address1.*' => ['required', new AlphaNumericSpace],
'country' => ['required', 'alpha'],
'state' => ['required', 'alpha'],
'city' => ['required', new AlphaNumericSpace],
'city' => ['required'],
'postcode' => ['required', 'numeric'],
'phone' => ['required', new PhoneNumber],
'vat_id' => [new VatIdRule()],

View File

@ -92,7 +92,7 @@
<div class="control-group" :class="[errors.has('city') ? 'has-error' : '']">
<label for="city" class="mandatory">{{ __('shop::app.customer.account.address.create.city') }}</label>
<input type="text" class="control" name="city" value="{{ old('city') ?? $address->city }}" v-validate="'required|regex:^[a-zA-Z \-]*$'" data-vv-as="&quot;{{ __('shop::app.customer.account.address.create.city') }}&quot;">
<input type="text" class="control" name="city" value="{{ old('city') ?? $address->city }}" v-validate="'required'" data-vv-as="&quot;{{ __('shop::app.customer.account.address.create.city') }}&quot;">
<span class="control-error" v-if="errors.has('city')" v-text="errors.first('city')"></span>
</div>
@ -136,4 +136,4 @@
</form>
{!! view_render_event('bagisto.shop.customers.account.address.edit.after', ['address' => $address]) !!}
@endsection
@endsection