-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Namespace com_categories #15851
[4.0] Namespace com_categories #15851
Conversation
* @param string $prefix The class prefix. Optional. | ||
* @param array $config The array of possible config values. Optional. | ||
* | ||
* @return \Joomla\Cms\Model\Model The model. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldnt this be CMS
@@ -164,14 +170,14 @@ protected function getRedirectToListAppend() | |||
/** | |||
* Function that allows child controller access to model data after the data has been saved. | |||
* | |||
* @param JModelLegacy $model The data model object. | |||
* @param array $validData The validated data. | |||
* @param \Joomla\Cms\Model\Model $model The data model object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMS as before and probably elsewhere
@wilsonge were my comments not valid? |
They are - but they are also valid in the other PR's I already merged before I got to this one. I'm just about to go do a global search replace :) |
i can do it if you want |
Sure feel free! |
see #15860 |
Summary of Changes
This simple PR convert com_categories component to namespace MVC for Joomla 4.
Testing Instructions
Overall, test to make sure it works in the same as before (none namespace version)
Install latest Joomla 4.0-dev with sample data (or better install my branch https://github.com/joomdonation/joomla-cms/archive/namespace_com_categories.zip)
Login to administrator area of the site, access to Content -> Categories.
Try to add/edit/publish/unpublish/archieve categories, make sure it is working as expected
Additional comment
com_categories require different access permission check compare to most backend component. I ignore the check for now and wait for decision about the method I propose on PR #15812 . If it is accepted, I will implement the check here or on a separate PR.