User tests: Successful: Unsuccessful:
The error occurs when doing webservices API POST call to /fields/groups/contacts/contact or /fields/groups/content/articles
Pull Request for Issue # .
Is_array test before doing count() - not needed FieldsHelper::extract returns null if there are not two parts
Code review -
or do test the webservices test with Postman and the collection from here:
https://github.com/alexandreelise/j4x-api-collection
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/clients/client2/web3/web/joomla-cms/administrator/components/com_fields/src/Model/GroupModel.php:247 etc.
No Error, Item is added
Please select:
Documentation link for docs.joomla.org:
[x ] No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
[x ] No documentation changes for manual.joomla.org needed
| Category | ⇒ | Administration com_fields |
| Status | New | ⇒ | Pending |
| Labels |
Added:
PR-4.3-dev
|
||
| Title |
|
||||||
tested fields/groups/contacts/contact too
I have tested this item
| Labels |
Added:
PHP 8.x
bug
?
|
||
The change looks ok, but I'm wondering why the context there is null?
| Status | Pending | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-07-20 14:04:55 |
| Closed_By | ⇒ | obuisard |
Yes OK - then we do not need to do a count again. I was just focusing on the part throwing the error... - and the section is not optional but mandatory