? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
21 Apr 2017

Pull Request for Issue # .

Summary of Changes

com_config (frontend) has really strange code. Instead of calling backend model getItem() method to get the module data, it uses complicated code by calling controller display method to get json view data.

This PR fixes that strange code. As a result, the json view + some code in com_modules is removed, too.

Testing Instructions

  1. Install Joomla 4 (with sample data for easier testing)
  2. Login to frontend using a super admin account
  3. Try to edit a module
  4. Before patch, no form display to allow edit module parameters
  5. After patch, a form displayed to allow changing module parameter. Save the module data, make sure the changes parameter is saved.
avatar joomdonation joomdonation - open - 21 Apr 2017
avatar joomdonation joomdonation - change - 21 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Apr 2017
Category Administration com_modules Front End com_config
dc3b333 21 Apr 2017 avatar joomdonation CS
avatar joomdonation joomdonation - change - 21 Apr 2017
Labels Added: ?
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Apr 2017

I have tested this item successfully on dc3b333


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 21 Apr 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Apr 2017
Title
[4.0] Fix + Simplify code of fontend module editing
[4.0] Fix + Simplify code of frontend module editing
avatar joomla-cms-bot joomla-cms-bot - edited - 21 Apr 2017
avatar richard67 richard67 - test_item - 21 Apr 2017 - Tested successfully
avatar richard67
richard67 - comment - 21 Apr 2017

I have tested this item successfully on dc3b333


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

avatar zero-24 zero-24 - change - 21 Apr 2017
Status Pending Ready to Commit
Labels Added: ?
avatar joomdonation
joomdonation - comment - 21 Apr 2017

Many thanks for testing @franz-wohlkoenig , @richard67 .

avatar wilsonge
wilsonge - comment - 21 Apr 2017

Is there a reason this can't go into staging (but you'd need to leave the view.json.php in place and deprecate it for j4

avatar joomdonation
joomdonation - comment - 22 Apr 2017

@wilsonge Only the change in display controller of com_config can go into stagging. Since we have to keep the file view.json.php, the code in module controller class will need to be kept as well

Do we really need to deprecate the view.json.php class? We will namespace com_modules, so that class won't be available in Joomla4 anyway, so I think it doesn't need to be deprecated?

avatar joomdonation
joomdonation - comment - 23 Apr 2017

@wilsonge Maybe just merge it into Joomla 4. It helps namespacing com_modules easier. We can backport the change of display controller in com_config back to staging later if needed

avatar wilsonge wilsonge - change - 23 Apr 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-23 10:56:29
Closed_By wilsonge
Labels
avatar wilsonge wilsonge - close - 23 Apr 2017
avatar wilsonge wilsonge - merge - 23 Apr 2017

Add a Comment

Login with GitHub to post a comment