Skip to content

Unexpected Use of Placeholder Phone Number (0000000000) Instead of NULL in LengowAddress Model #54

@quasiperfect

Description

@quasiperfect

Hello,

I noticed that in the following line of the LengowAddress model:

$notPhone = '0000000000';

the value 0000000000 is used as a placeholder for phone numbers instead of NULL.

This implementation is causing issues on a PrestaShop site I manage, where a significant number of orders are being populated with 0000000000 in the phone or phone_mobile fields. These placeholder values are interfering with order processing and data validation workflows.

Could you clarify the rationale behind using 0000000000 instead of NULL? If there's no specific requirement for this placeholder, would it be possible to revise the logic to use NULL or leave the field empty when no phone number is available?

Thank you for your attention to this matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions