Bug with filtering & action buttons
-
Scenario: we use various tags for our snippets. We want to filter them by a given tag and later on export them. By mistake we first choose “Export” from the dropdown menu BUT don’t click the Apply button. We see our mistake and from the Filter dropdown we choose the right tag. We click the Filer button. Now instead of the page reloading, it downloads the export file. In a worse scenario, the user selects the “Delete” action and then a filter and thus removes his snippets.
I’m pretty sure this is due to the Actions and Filter dropdown menus using the same form tag, which makes it submit both of the fields at the same time. Maybe you could find a way around that, so that scenario doesn’t happen? Like so: if the form is submitted with both fields filled out BUT the request URL did not have the “&tag=” string (also known as $_GET[‘tag’]), don’t execute the action and instead just filter the results. This would prevent such a situation and secure the plugin for this instance.
All the best and thanks for your awesome plugin!
Chris Trynkiewicz
http://EssentialsOfTheOnlineBusiness.com
The topic ‘Bug with filtering & action buttons’ is closed to new replies.