The custom field returns the raw value consistently, preferably as a string since it is not allowing multiples. An array with a single item would also work.
The custom field returns the raw value inconsistently - sometimes as a string, sometimes as an array. I can work around it, but the inconsistent behavior feels like a bug.
Joomla 4.1.5
PHP 8
Happens regardless of list layout.
Labels |
Added:
No Code Attached Yet
|
It seems to be. Not sure what would happen if they were more mixed in as I had to get moving with the project and worked around it; I will have to experiment more later.
Just a guess based on your screenshot. Is it always an array for the first and a string for subsequent values?
Just played with it more; this is correct, @brianteeman. It doesn't seem to matter if they are not in subsequent order; the first time a certain value is used, it's always an array, and every other time the value is used it is a string.
Labels |
Added:
bug
|
Just a guess based on your screenshot. Is it always an array for the first and a string for subsequent values?