No Code Attached Yet
avatar pioada
pioada
18 Mar 2024

Steps to reproduce the issue

Create a plugin that will change search input data, eg. rename from custom project to Joomla! data names, add input data, etc.

Expected result

The plugin should be able to access / change all search input data.

Actual result

The plugin can access / change ONLY sort input data ("o" and "od" parameters).

System information (as much as possible)

Joomla 4.4.3. Same in 5.0.3.

Additional comments

Problem is in components/com_finder/src/Model/SearchMode in populateState function.
Order input data is retrieved from "input data", and that is whay it is available for plugins (code).
All other data is retrieved from "input request data" and thats whay it is not available for plugins.
Changing $request to $input make it works as expected.

avatar pioada pioada - open - 18 Mar 2024
avatar pioada pioada - change - 18 Mar 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 Mar 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Mar 2024
avatar Hackwar Hackwar - change - 19 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-19 08:24:44
Closed_By Hackwar
avatar Hackwar Hackwar - close - 19 Mar 2024
avatar Hackwar
Hackwar - comment - 19 Mar 2024

I created a PR to change this: #43091 Since we have a PR, I'm closing this issue. Please have a look and test the PR.

Add a Comment

Login with GitHub to post a comment