? ? Pending

User tests: Successful: Unsuccessful:

avatar Septdir
Septdir
2 Mar 2018

Summary of Changes

Change modules check to ignore the Menu Assignment menu in com_ajax

Testing Instructions

  • Install Joomla 3.8.5
  • Download and install this test module mod_ajaxtest.zip (or you can use your module)
  • Go to modules manager and then go to mod_ajaxtest settings
  • Сheck Module Assignment set No pages and save module
  • Apply this path
  • Return to the mod_ajaxtest settings and you will see a message about a successful request

Expected result

The request will be successful regardless of the Menu Assignment

Actual result

The request is executed with an error
Module mod_ajaxtest is not published, you do not have access to it, or it's not assigned to the current menu item.

What is it for

If you honestly bothered each time to pass the itemID when I need use com_ajax in modules, if the module is form is still quite tolerable (you can make a hidden field), then in all other cases you have to be wiser.

And if you need com_ajax in the module settings. For example, some kind of field, then you have to do a third-party file handler

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar Septdir Septdir - open - 2 Mar 2018
avatar Septdir Septdir - change - 2 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2018
Category Libraries
avatar mbabker
mbabker - comment - 2 Mar 2018

This is going to break caching this query result...

avatar Septdir Septdir - change - 2 Mar 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2018
Category Libraries Front End com_ajax
avatar Septdir
Septdir - comment - 2 Mar 2018

@mbabker hm.. Then maybe so
e9eee7b

I change check inside com_ajax

avatar Septdir Septdir - change - 2 Mar 2018
Title
[com_ajax] Add com_ajax check in moduleHelper
[com_ajax] Change modules check
avatar Septdir Septdir - edited - 2 Mar 2018
avatar Septdir Septdir - change - 2 Mar 2018
The description was changed
avatar Septdir Septdir - edited - 2 Mar 2018
avatar mbabker
mbabker - comment - 2 Mar 2018

On a quick glance that seems fine.

avatar schnuti
schnuti - comment - 3 Mar 2018

I have tested this item successfully on e9eee7b

Works with my own a bit complicated ajax-module. Translations using the PHP DeepLy library for the DeepL API.

I wondered why it didn't work until I found the evil in the module check. I was happy to find this fix. Thanks!


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

avatar schnuti schnuti - test_item - 3 Mar 2018 - Tested successfully
avatar Septdir Septdir - change - 3 Mar 2018
The description was changed
avatar Septdir Septdir - edited - 3 Mar 2018
avatar Septdir Septdir - change - 3 Mar 2018
The description was changed
avatar Septdir Septdir - edited - 3 Mar 2018
avatar pavluk
pavluk - comment - 3 Mar 2018

I have tested this item successfully on e9eee7b


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

avatar pavluk pavluk - test_item - 3 Mar 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Mar 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Mar 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 17 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-17 15:27:35
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 17 Mar 2018
avatar mbabker mbabker - merge - 17 Mar 2018

Add a Comment

Login with GitHub to post a comment