Skip to content

[4.0] Use unique identifiers in ExtensionHelper::getExtensionRecord()#29230

Merged
HLeithner merged 5 commits intojoomla:4.0-devfrom
SharkyKZ:j4/bug/extension-record
May 28, 2020
Merged

[4.0] Use unique identifiers in ExtensionHelper::getExtensionRecord()#29230
HLeithner merged 5 commits intojoomla:4.0-devfrom
SharkyKZ:j4/bug/extension-record

Conversation

@SharkyKZ
Copy link
Copy Markdown
Contributor

Summary of Changes

Currently, Joomla\CMS\Extension\ExtensionHelper::getExtensionRecord() uses extension "name" to retrieve extension record. But the name is not standardized, not unique and can not be relied on.

This changes the method to be based on element, extension type and, optionally, client ID and folder.

Testing Instructions

Postinstall module and other code using the method should work like before.

Documentation Changes Required

Maybe. Existing uses Joomla\CMS\Extension\ExtensionHelper::getExtensionRecord() need to be updated to account for changes in function signature.

@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 05f4534


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

1 similar comment
@bonzani
Copy link
Copy Markdown

bonzani commented May 28, 2020

I have tested this item ✅ successfully on 05f4534


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

@richard67
Copy link
Copy Markdown
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 28, 2020
@HLeithner HLeithner merged commit bd63b3c into joomla:4.0-dev May 28, 2020
@HLeithner
Copy link
Copy Markdown
Member

Thanks

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 28, 2020
@HLeithner HLeithner added this to the Joomla 4.0 milestone May 28, 2020
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
…joomla#29230)

* Use unique identifiers

* Update uses

* Update uses

* Client check for template

* Typehint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants