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

[4.0] Namespace com_categories #15851

Merged
merged 2 commits into from
May 6, 2017
Merged

[4.0] Namespace com_categories #15851

merged 2 commits into from
May 6, 2017

Conversation

joomdonation
Copy link
Contributor

@joomdonation joomdonation commented May 6, 2017

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)

  1. 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)

  2. Login to administrator area of the site, access to Content -> Categories.

  3. 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.

@mbabker mbabker added this to Testing/Review in [4.0] Namespacing May 6, 2017
* @param string $prefix The class prefix. Optional.
* @param array $config The array of possible config values. Optional.
*
* @return \Joomla\Cms\Model\Model The model.
Copy link
Contributor

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.
Copy link
Contributor

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 wilsonge merged commit 3597011 into joomla:4.0-dev May 6, 2017
@wilsonge wilsonge added this to the Joomla 4.0 milestone May 6, 2017
@brianteeman
Copy link
Contributor

@wilsonge were my comments not valid?

@wilsonge
Copy link
Contributor

wilsonge commented May 6, 2017

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 :)

@brianteeman
Copy link
Contributor

i can do it if you want

@wilsonge
Copy link
Contributor

wilsonge commented May 6, 2017

Sure feel free!

@brianteeman
Copy link
Contributor

see #15860

@mbabker mbabker moved this from Testing/Review to Completed in [4.0] Namespacing May 6, 2017
@joomdonation joomdonation deleted the namespace_com_categories branch May 7, 2017 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants