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.
Now click another button on the page, such as 'Clear' or perform a search.
The export window pops up again.
After an export the other buttons should work as expected and not perform another export.
The export window pops up many times.
Joomla 3.9.0-alpha2-dev on Windows 10/WAMP.
None.
Category | ⇒ | com_csp |
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Confirmed |
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?
something like JRequest::setVar('task', '');
i guess
No, not something like that. We will need to find a way to reset the value of the task hidden input
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.
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.
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-09-13 06:24:57 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/22095
confirm
ping @joomdonation