- Issue created by @NikolaAt
Here it is a patch validating the string value, that is required because of substr()
- Status changed to Needs review
over 1 year ago 12:21pm 28 March 2023
TypeError: substr(): Argument #1 ($string) must be of type string, array given in substr() (line 786 of /var/www/docroot/modules/contrib/webtexttool/webtexttool.module)
$command variable has command name value 'add_js'. Data property for this command is array and error is triggered.
I am using a entity reference field to add paragraphs. When I click on the paragraphs that I selected, nothing happens and this error appears in the console.
Add check for the variable type
Review the patch
Needs review
1.7
Code
Here it is a patch validating the string value, that is required because of substr()