J3 Issue ?
avatar BurtNL
BurtNL
8 Sep 2018

Steps to reproduce the issue

Go to Users > User Actions Log and click the button 'Export All as CSV' or make a selection of some log entries and click button 'Export Selected as CSV'. An export windows pops up to store the CSV or opens directly in Excel. Choose either one. The CSV will be exported or opens in Excel. All good.

screen shot 2018-09-08 at 18 45 32

Now click another button on the page, such as 'Clear' or perform a search.
The export window pops up again.

Expected result

After an export the other buttons should work as expected and not perform another export.

Actual result

The export window pops up many times.

System information (as much as possible)

Joomla 3.9.0-alpha2-dev on Windows 10/WAMP.

Additional comments

None.

avatar BurtNL BurtNL - open - 8 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Sep 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Sep 2018
Category com_csp
avatar brianteeman brianteeman - change - 9 Sep 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 9 Sep 2018
avatar alikon
alikon - comment - 11 Sep 2018

confirm
ping @joomdonation

avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Sep 2018
Status New Confirmed
avatar joomdonation
joomdonation - comment - 12 Sep 2018

It's because when a button is clicked, the task associated with that button is stored in task hidden input. Then when users perform other action (without reloading the page), the form is submitted with that task and action logs keep being exported.

Does anyone knows a simple way to reset the value of task hidden input after the form is submitted? Or we will have to add some javascript to clear the value of that task hidden input for every buttons (search, clear...) before the form is submitted?

avatar alikon
alikon - comment - 12 Sep 2018

something like JRequest::setVar('task', ''); i guess

avatar joomdonation
joomdonation - comment - 12 Sep 2018

No, not something like that. We will need to find a way to reset the value of the task hidden input

  • After the Export All as CSV button clicked
  • Or somehow, before the form is submitted when users click on Search, Clear button (or even change a value in the dropdown filter in search tools)
avatar mbabker
mbabker - comment - 12 Sep 2018

That is exactly why there are no checkboxes on the privacy request screen and the action buttons are inlined on each row. The UI toolkit just does not work if you're performing an action that does not result in a reload/redirect.

avatar joomdonation
joomdonation - comment - 12 Sep 2018

Guess we can add a second form to the page and submit that form on export request and it would solve that issue. I will find sometime to work on it on tomorrow.

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Sep 2018
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2018-09-13 06:24:57
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 13 Sep 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 13 Sep 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Sep 2018

closed as having Pull Request #22155

Add a Comment

Login with GitHub to post a comment