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
    509
    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

      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

        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

          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

            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

              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

                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
                • First post
                  Last post