[4.0][api][com_content] some fixes#27071
[4.0][api][com_content] some fixes#27071alikon wants to merge 11 commits intojoomla:4.0-devfrom alikon:patch-112
Conversation
Co-Authored-By: Quy <quy@fluxbb.org>
|
When providing nonexistent article ID:
|
|
Sorry more on multilingual site:
|
|
no problem at all |
|
just give me more hints on how to replicate.... i'm on a multiligual now, but still don't get that notice with this pr applyed..... what i'm missing ? |
|
can you re-test please |
|
I have tested this item ✅ successfully on 5f1cd12 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27071. |
|
as issues are still present |

Summary of Changes
fulltextfield to the articles model select listarray_combine()3.fix PHP Notice When providing non existent article ID
Testing Instructions
api/index.php/v1/content/articleapi/index.php/v1/content/article/XXwhere xx is an article id without tags
and/or
where xx is not an article existent article id
Expected result
no notice
no warning
Actual result
PHP Notice: Undefined property: stdClass::$fulltext in .../api/components/com_content/View/Articles/JsonapiView.php on line 138PHP Warning: array_combine(): Both parameters should have an equal number of elements in .../api/components/com_content/View/Articles/JsonapiView.php on line 171