joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[6.0] The admin model does return a stdClass instead of CMSObject

Open laoneo opened this issue 1 year ago • 0 comments

Summary of Changes

Followup of https://github.com/joomla/joomla-cms/pull/42717, to return a \stdClass instead of CMSObject in the Adminmodel getItem function. Developers should work directly on the properties on the returned item and not call the deprecated set or get function.

Testing Instructions

  • Install 3rd party content plugins
  • Create an article
  • Open the article on the front end

Actual result BEFORE applying this Pull Request

All works.

Expected result AFTER applying this Pull Request

All works.

Link to documentations

Please select:

  • [x] Documentation link for docs.joomla.org:

  • [ ] No documentation changes for docs.joomla.org needed

  • [x] Pull Request link for manual.joomla.org: https://github.com/joomla/Manual/pull/237

  • [ ] No documentation changes for manual.joomla.org needed

laoneo avatar Mar 05 '24 13:03 laoneo