• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

The last name can only accept alpha, numeric and spaces.

Bug Report
3
6
1.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    muhammedozf last edited by 29 Apr 2024, 09:35

    When registering to the form, write "The last name can only accept alpha, numeric and spaces." in Turkish (in letters such as ŞĞÜÖÇ). I'm getting a warning. how can i fix this?
    Screenshot_1.jpg

    1 Reply Last reply Reply Quote 0
    • S
      shivendra-webkul last edited by 29 Apr 2024, 11:10

      Hi @muhammedozf,

      To remove the validation from first name and last name, you can make some changes. Please refer to the following PR for the removal of validation:

      PR link: https://github.com/bagisto/bagisto/pull/9727

      1 Reply Last reply Reply Quote 0
      • S
        shivendra-webkul last edited by 29 Apr 2024, 11:11

        Hi @muhammedozf,

        To remove the validation from first name and last name, you can make some changes. Please refer to the following PR for the removal of validation:
        PR link: https://github.com/bagisto/bagisto/pull/9727

        1 Reply Last reply Reply Quote 0
        • S
          shivendra-webkul last edited by 29 Apr 2024, 11:13

          Hi @muhammedozf,

          To remove the validation from first name and last name, you can make some changes. Please refer to the following PR for the removal of validation:

          PR link: https://github.com/bagisto/bagisto/pull/9727

          1 Reply Last reply Reply Quote 0
          • M
            muhammedozf last edited by 29 Apr 2024, 12:37

            packages\Webkul\Core\src\Rules\AlphaNumericSpace.php

            from
            if (! preg_match("~^[a-zA-Z0-9\s'\s\p{Arabic}]{1,60}$~iu", $value)) {
            $fail('core::validation.alpha-numeric-space')->translate();
            }

            to
            if (! preg_match("~^[a-zA-Z0-9öÖüÜğĞşŞçÇ\s'\s\p{Arabic}]{1,60}$~iu", $value)) {
            $fail('core::validation.alpha-numeric-space')->translate();
            }

            1 Reply Last reply Reply Quote 0
            • Rishabh-Webkul
              Rishabh-Webkul last edited by 30 Apr 2024, 06:24

              Hello @muhammedozf

              Greetings of the day..!!

              This issue of bug report has already been raised and fixed in the master branch.

              https://github.com/bagisto/bagisto/issues/9726

              Thanks & Regards..!!

              1 Reply Last reply Reply Quote 0
              5 out of 6
              • First post
                5/6
                Last post