? Pending

User tests: Successful: Unsuccessful:

avatar euismod2336
euismod2336
7 May 2018

Summary of Changes

Changed the loadFormData to cast $data to an object (in com_menus/item and com_banners/download). All other components/models use an object when calling $this->preprocessData, com_menu and com_banner (and these specific models) seem to be the only exceptions. These changes should have no negative effect on existing code. This change is required to be able to alter the data of the JForm because the original array will not be modified (an object will however).

Testing Instructions

  1. Open the file plugins/system/stats/stats.php
  2. Add these lines after line 22
 public function onContentPrepareData($context, $data)
    {
        $data['title'] = "foo";
    }
  1. Go in the backend to a menu-item (here I open a menu item called Login)
  2. Notice how the title remains unchanged

image

On all other views this will throw an exception/error (this is the inconsistency)
  1. Apply the patch
  2. Change the code in stats.php to look like the following
 public function onContentPrepareData($context, $data)
    {
        $data->title = "foo";
    }
  1. Now reload the menu item page and see the title is changed

image

To test this with the banners fix, do the following:

  1. Open the file plugins/system/stats/stats.php
  2. Add these lines after line 22
 public function onContentPrepareData($context, $data)
    {
        $data['basename'] = "foo";
    }
  1. Go in the backend to Banners -> Tracks
  2. Click on Export
  3. The modal shows the File Name as SITE instead of foo

image

  1. Close the modal
  2. Change the code in stats.php to look like the following
 public function onContentPrepareData($context, $data)
    {
        $data->basename = "foo";
    }
  1. Now click on the Export button again and notice the File Name is changed to foo

image

Now both have been successfully tested

Expected result

Title of menu-item is changed to "foo"

Actual result

Title remains unchanged

Documentation Changes Required

None

avatar euismod2336 euismod2336 - open - 7 May 2018
avatar euismod2336 euismod2336 - change - 7 May 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2018
Category Administration com_banners com_menus
avatar euismod2336 euismod2336 - change - 7 May 2018
The description was changed
avatar euismod2336 euismod2336 - edited - 7 May 2018
avatar euismod2336 euismod2336 - change - 7 May 2018
The description was changed
avatar euismod2336 euismod2336 - edited - 7 May 2018
avatar euismod2336 euismod2336 - change - 15 May 2018
Title
Form data as object
Enable to change FormData in com_menu
avatar euismod2336 euismod2336 - edited - 15 May 2018
avatar euismod2336 euismod2336 - change - 25 May 2018
The description was changed
avatar euismod2336 euismod2336 - edited - 25 May 2018
avatar euismod2336 euismod2336 - change - 25 May 2018
The description was changed
avatar euismod2336 euismod2336 - edited - 25 May 2018
avatar roland-d roland-d - change - 25 May 2018
The description was changed
avatar roland-d roland-d - edited - 25 May 2018
avatar roland-d
roland-d - comment - 25 May 2018

I have tested this item successfully on 106f55d

Before applying the patch the form was not changed, after applying the patch, the form was changed as intended.


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

avatar roland-d roland-d - test_item - 25 May 2018 - Tested successfully
avatar Quy Quy - change - 26 May 2018
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 26 May 2018
avatar joomla-cms-bot joomla-cms-bot - edited - 26 May 2018
avatar Quy Quy - change - 26 May 2018
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 26 May 2018
avatar joomla-cms-bot joomla-cms-bot - edited - 26 May 2018
avatar RemcoJanssen
RemcoJanssen - comment - 26 May 2018

I tested this successfully!

Before applying the patch nothing happened to the form, after applying the patch it worked as intended.


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

avatar roland-d roland-d - alter_testresult - 26 May 2018 - RemcoJanssen: Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2018

@RemcoJanssen please mark your Test as successfully:

  • open Issue Tracker
  • Login with your github-Account
  • Click on blue "Test this"-Button above Authors-Picture
  • mark your Test as successfully
  • hit "submit test result"
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2018

Ready to Commit after two successful tests.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 May 2018

Sorry @RemcoJanssen have seen later your marked test at Tracker.

avatar mbabker mbabker - change - 28 May 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-05-28 14:57:21
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 28 May 2018
avatar mbabker mbabker - merge - 28 May 2018
avatar Milo-W
Milo-W - comment - 26 Jun 2018

Is there no testing of releases or what?

avatar mbabker
mbabker - comment - 26 Jun 2018

Is there no testing of releases or what?

Well, actually there is. As clearly demonstrated by the comments on this pull request, it was tested and validated before being merged. Several weeks ago. In the time since this pull request was tested and merged, there had been exactly zero reports of any issues with this patch. Indicating that the patch was not tested with extensions which are now impacted by this change and that the extension developers with extensions impacted by this change are not regularly testing their extensions against a development build.

So yes, releases are continually tested both by humans and through numerous automated tool suites. Releases are not tested against every one of the 8,000+ extensions listed in the directory, or the countless other extensions not.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Jun 2018

@Milo-W you are invited to test too.

avatar MaxLynam
MaxLynam - comment - 26 Aug 2018

wondering if there is a minor/dev release or patch to navigate this issue for the time being?

-> Helix had a quick fix update overnight and is now working for the conflict with helix.

Add a Comment

Login with GitHub to post a comment