Prestashop: No validation on create/edit addresses forms

Created on 24 Mar 2020  路  5Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

Some fields in the edit or the create address form need more validations

Fields where more validations is needed:

  • city: its possible to add only numbers (a lot of numbers )
  • same for company, address and phone ( see screenshots )

Expected behavior

Some validation should be applyed

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to FO => Account => Address
  2. Select an existing address and click on update / or create a new address
  3. In the city , address , company, phone fields try to add only numbers and save
  4. See error

Screenshots
https://drive.google.com/file/d/1WwVd2s4vGpp0xNDHhOzekfHSN7QWY-Jc/view

Additional information

In the screen record I use the create address form but the bug is reproducible when editing an address to !

  • PrestaShop version: 1.7.7.x , 1.7.6.x
  • PHP version: 7.2
1.7.5.2 1.7.6.4 1.7.6.x 1.7.7.x Addresses Bug Customer FO Major To Do

All 5 comments

Hi @SD1982,

I have the same issue with PS1.7.5.2, PS1.7.6.4, and the branch 1.7.7.x.
In the BO => Addresses page => OK
Legacy page
image
Migrated page
image

Thanks!

@khouloudbelguith It seems @SD1982 is talking about the FO page, not the BO page 馃 ?

Hi @matks,

Yes, it is an FO issue.
I just compared with the BO and that it is ok in the BO.

Thanks!

A part of the issue has been fixed by @PululuK in #19449.

Furthermore, you can add:

  • only a number on the field "Address"

  • a Postal code on the field City

  • A City on the field Postal Code

V 1.7.7.x
See attached file.

Capture d鈥檈虂cran 2020-08-07 a虁 16 47 51

Was this page helpful?
0 / 5 - 0 ratings