codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.39k stars 1.9k forks source link

Bug: Custom validation error for a field with an asterisk and a custom rule #6393

Closed mazdel closed 2 years ago

mazdel commented 2 years ago

PHP Version

8.1

CodeIgniter4 Version

4.2.4

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

fpm-fcgi

Database

MariaDB 10.3.34

What happened?

when I set a custom rule for a field with asterisk and I set it's custom error message too. if the field is error it will show Validation.mycustom_rule instead the custom error message

Steps to Reproduce

Expected Output

Array
(
    [test_data.0] => "test_data of test1 is not exist",
    [test_data.1] => "test_data of test2 is not exist"
)

Anything else?

ps : please forgive and correct me back if there are some mistyping because the actual codes and data is kinda secret

iRedds commented 2 years ago

fixes in progress https://github.com/codeigniter4/CodeIgniter4/pull/6378

mazdel commented 2 years ago

fixes in progress #6378

thank you...

kenjis commented 2 years ago

Deplicate of #6245