? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
18 Mar 2020

redo of #27071 .

Summary of Changes

  • added fulltext field to the articles model select list
  • fixed multilanguage

Testing Instructions

  1. install a multingual site
  2. run Multilingual Sample Data
  3. call the api api/index.php/v1/content/article

Expected result

no notice

Actual result

PHP Notice: Undefined property: stdClass::$fulltext in ../api/components/com_content/src/View/Articles/JsonapiView.php on line 149

PHP Notice: Undefined property: stdClass::$associations in /var/www/html/jbs4/api/components/com_content/src/View/Articles/JsonapiView.php on line 164

cc @wilsonge

avatar alikon alikon - open - 18 Mar 2020
avatar alikon alikon - change - 18 Mar 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Mar 2020
Category Administration com_content
avatar Quy
Quy - comment - 19 Mar 2020

I have tested this item successfully on 5eca290


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28384.

avatar Quy Quy - test_item - 19 Mar 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 19 Mar 2020

I have tested this item successfully on 5eca290


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28384.

avatar jwaisner jwaisner - test_item - 19 Mar 2020 - Tested successfully
avatar jwaisner jwaisner - change - 19 Mar 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 19 Mar 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28384.

avatar wilsonge
wilsonge - comment - 19 Mar 2020

Just holding on merging this as need to reproduce. I think we may want to make multilang associations an empty array in this case rather than not render at all. BUT need to test to be sure :)

avatar SharkyKZ
SharkyKZ - comment - 19 Mar 2020

And do we want fulltext always loaded in backend?

avatar wilsonge
wilsonge - comment - 19 Mar 2020

We already started pulling out several properties to the api. fulltext isn't the end of the world. I don't like the associations fix but it's more related to how prepareItem works - think it needs to be aware of whether it's a list or item - but that's for a future PR. this will do for now

avatar wilsonge wilsonge - change - 19 Mar 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-03-19 23:19:31
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 19 Mar 2020
avatar wilsonge wilsonge - merge - 19 Mar 2020
avatar wilsonge
wilsonge - comment - 19 Mar 2020

Thanks!

Add a Comment

Login with GitHub to post a comment