? Pending

User tests: Successful: Unsuccessful:

avatar ggppdk
ggppdk
6 Sep 2017

Pull Request for Issue #17880

The issue was introduced by PR #13511

@mbabker
@frankmayer (i am not mentioning you by mistake this is an intentional mention
(sorry for mentioning by mistake in the past))

@Quy
@franz-wohlkoenig

Summary of Changes

Smart search indexer update method accepts
FinderIndexer::addTokensToDb()

Accepts

  • either An array FinderIndexerToken objects
  • or single FinderIndexerToken object

It has a type cast to force single FinderIndexerToken object to be an array of FinderIndexerToken objects

  • but the typecast is wrong

and converts a single FinderIndexerToken object
to be an array

Testing Instructions

Code review

Also smart search indexer is updated properly

Expected result

Indexer can store single FinderIndexerToken object

Actual result

Indexer can not store single FinderIndexerToken object

Documentation Changes Required

None

avatar joomla-cms-bot joomla-cms-bot - change - 6 Sep 2017
Category Administration com_finder
avatar ggppdk ggppdk - open - 6 Sep 2017
avatar ggppdk ggppdk - change - 6 Sep 2017
Status New Pending
avatar ggppdk ggppdk - change - 6 Sep 2017
The description was changed
avatar ggppdk ggppdk - edited - 6 Sep 2017
avatar ggppdk ggppdk - change - 6 Sep 2017
The description was changed
avatar ggppdk ggppdk - edited - 6 Sep 2017
avatar frankmayer
frankmayer - comment - 7 Sep 2017

Sorry for the mess, guys and gals. I totally forgot that in this case the object itself would be cast into an array.

@ggppdk Thanks for finding and fixing this. As for the mentions, no issues, it happens ;)

avatar mbabker mbabker - change - 7 Sep 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-09-07 11:48:11
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 7 Sep 2017
avatar mbabker mbabker - merge - 7 Sep 2017
avatar ggppdk ggppdk - change - 7 Sep 2017
The description was changed
avatar ggppdk ggppdk - edited - 7 Sep 2017

Add a Comment

Login with GitHub to post a comment