opencart icon indicating copy to clipboard operation
opencart copied to clipboard

[Master] No error message when regex validation is invalid

Open condor2 opened this issue 1 year ago • 3 comments

What version of OpenCart are you reporting this for? Master

Describe the bug Add a new Text custom field and write some letters in Validation input (fgfgf) then click save.

No error message it shown.

Console log message error

Unknown: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in admin\controller\customer\custom_field.php on line 387

Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL in admin\controller\customer\custom_field.php on line 387{"error":{"validation":"error_validation"}}`

condor2 avatar Nov 18 '23 12:11 condor2

Closed....and Admin warning message where is?

condor2 avatar Nov 24 '23 19:11 condor2

@AJenbo im getting a bit worried about some of ur commits now.

danielkerr avatar Jan 06 '24 20:01 danielkerr

https://github.com/opencart/opencart/pull/12994#issuecomment-1823144109

AJenbo avatar Jan 06 '24 21:01 AJenbo

should be ok now

danielkerr avatar May 29 '24 15:05 danielkerr