Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Refactoring views to directly call models (com_guidedtours to com_newsfeeds) #44164

Merged
merged 10 commits into from
Oct 10, 2024

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Sep 30, 2024

Summary of Changes

This PR refactors the views to get the model object and then directly call the methods of the model instead of going through the View::get() indirection. This refactors the views of the backend components from com_guidedtours to com_newsfeeds.

Testing Instructions

Everything should work the same.

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

Copy link
Member

@HLeithner HLeithner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the state looks strange the rest seems ok.

@laoneo laoneo self-assigned this Oct 10, 2024
@laoneo laoneo merged commit 92722e9 into joomla:5.3-dev Oct 10, 2024
3 checks passed
@laoneo
Copy link
Member

laoneo commented Oct 10, 2024

Thanks!

@laoneo laoneo added this to the Joomla! 5.3.0 milestone Oct 10, 2024
@Hackwar Hackwar deleted the 5.3-models-in-views2 branch October 10, 2024 07:20
@wilsonge
Copy link
Contributor

wilsonge commented Nov 3, 2024

As an FYI this broke the ability to edit a tour. Was a incredibly simple fix from a bad copy/paste so I've very naughtily fixed it directly 73c60bc .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants