? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
14 Nov 2019

Summary of Changes

  1. added fulltext field to the articles model select list
  2. fix warning array_combine()
    3.fix PHP Notice When providing non existent article ID

Testing Instructions

  1. call the api api/index.php/v1/content/article
  2. call the api api/index.php/v1/content/article/XX

where 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 138

PHP Warning: array_combine(): Both parameters should have an equal number of elements in .../api/components/com_content/View/Articles/JsonapiView.php on line 171

avatar alikon alikon - open - 14 Nov 2019
avatar alikon alikon - change - 14 Nov 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2019
Category Administration com_content
avatar alikon alikon - change - 14 Nov 2019
Labels Added: ?
avatar alikon alikon - change - 14 Nov 2019
The description was changed
avatar alikon alikon - edited - 14 Nov 2019
avatar alikon alikon - change - 14 Nov 2019
Title
[4.0][api][com_content] add fulltext field for API
[4.0][api][com_content] some fixes
avatar alikon alikon - edited - 14 Nov 2019
avatar alikon alikon - change - 14 Nov 2019
The description was changed
avatar alikon alikon - edited - 14 Nov 2019
avatar Quy
Quy - comment - 19 Nov 2019

When providing nonexistent article ID:

PHP Notice: Undefined property: stdClass::$rawvalue in \api\components\com_content\View\Articles\JsonapiView.php on line 146

avatar alikon alikon - change - 20 Nov 2019
The description was changed
avatar alikon alikon - edited - 20 Nov 2019
9caefa9 20 Nov 2019 avatar alikon cs
avatar Quy
Quy - comment - 20 Nov 2019

Sorry more on multilingual site:

PHP Notice: Undefined property: stdClass::$associations in \api\components\com_content\View\Articles\JsonapiView.php on line 158

PHP Warning: Invalid argument supplied for foreach() in \api\components\com_content\View\Articles\JsonapiView.php on line 158

avatar alikon
alikon - comment - 20 Nov 2019

no problem at all
happy that you are testing...
just keep patience with my dirty hacks ?

avatar alikon
alikon - comment - 20 Nov 2019

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 ?

avatar Quy
Quy - comment - 20 Nov 2019

Install French and German.
Install Multilingual Sample Data.
Call the API.

27071

avatar alikon
alikon - comment - 20 Nov 2019

can you re-test please

5f1cd12 21 Nov 2019 avatar alikon cs
avatar Quy Quy - test_item - 21 Nov 2019 - Tested successfully
avatar Quy
Quy - comment - 21 Nov 2019

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.

avatar alikon alikon - change - 12 Feb 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-02-12 19:35:59
Closed_By alikon
Labels Added: ?
avatar alikon alikon - close - 12 Feb 2020
avatar alikon alikon - change - 18 Mar 2020
Status Closed New
Closed_Date 2020-02-12 19:35:59
Closed_By alikon
avatar alikon alikon - change - 18 Mar 2020
Status New Pending
avatar alikon alikon - reopen - 18 Mar 2020
avatar alikon
alikon - comment - 18 Mar 2020

as issues are still present
better to do another fresh one to solve conflict

avatar alikon alikon - change - 18 Mar 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-03-18 11:11:00
Closed_By alikon
avatar alikon alikon - close - 18 Mar 2020

Add a Comment

Login with GitHub to post a comment