RTC bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
16 Mar 2024

Pull Request for Issue # .

Summary of Changes

When Finder helper trying to add a new content type it ignores already added types.
This leads to duplicated entry error.

Testing Instructions

Run following code anywhere:

$name = uniqid(); // Imitating a new content type name, can be any string
var_dump(Joomla\Component\Finder\Administrator\Indexer\Helper::addContentType($name, ''));
var_dump(Joomla\Component\Finder\Administrator\Indexer\Helper::addContentType($name, ''));

Actual result BEFORE applying this Pull Request

An error Duplicate entry 'xxxxx' for key 'xxxx.title'

Expected result AFTER applying this Pull Request

No error, the method return the same ID

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org:
  • No documentation changes for manual.joomla.org needed
avatar Fedik Fedik - open - 16 Mar 2024
avatar Fedik Fedik - change - 16 Mar 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Mar 2024
Category Administration com_finder
avatar Fedik Fedik - change - 16 Mar 2024
Labels Added: bug PR-4.4-dev
avatar exlemor exlemor - test_item - 21 Apr 2024 - Tested successfully
avatar exlemor
exlemor - comment - 21 Apr 2024

I have tested this item ✅ successfully on 7b1dfd4

@Fedik, I have successfully tested this in Joomla 4.4.4 (as well as Joomla 5.1.0 as well)


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

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
Fix finder helper addContentType duplicate entry for key 'title'
[4.4] Fix finder helper addContentType duplicate entry for key 'title'
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar viocassel viocassel - test_item - 17 May 2024 - Tested successfully
avatar viocassel
viocassel - comment - 17 May 2024

I have tested this item ✅ successfully on 7b1dfd4


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

avatar alikon alikon - change - 18 May 2024
Status Pending Ready to Commit
avatar alikon
alikon - comment - 18 May 2024

RTC


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

avatar MacJoom MacJoom - change - 20 May 2024
Labels Added: RTC
avatar MacJoom MacJoom - change - 20 May 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-05-20 21:11:43
Closed_By MacJoom
avatar MacJoom MacJoom - close - 20 May 2024
avatar MacJoom MacJoom - merge - 20 May 2024

Add a Comment

Login with GitHub to post a comment