Skip to content

Commit

Permalink
Fix #15511 - Exporting users after a delete will delete all selected …
Browse files Browse the repository at this point in the history
…users

Fixes: #15511

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Oct 18, 2019
1 parent 22b0425 commit 7dca016
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/server_privileges.js
Expand Up @@ -308,9 +308,12 @@ AJAX.registerOnload('server_privileges.js', function () {
$(this).dialog('close');
};
var argsep = PMA_commonParams.get('arg_separator');
var serverId = PMA_commonParams.get('server');
var selectedUsers = $('#usersForm input[name*=\'selected_usr\']:checkbox').serialize();
var postStr = selectedUsers + '&submit_mult=export' + argsep + 'ajax_request=true&server=' + serverId;
$.post(
$(this.form).prop('action'),
$(this.form).serialize() + argsep + 'submit_mult=export' + argsep + 'ajax_request=true',
postStr,
function (data) {
if (typeof data !== 'undefined' && data.success === true) {
var $ajaxDialog = $('<div />')
Expand Down

0 comments on commit 7dca016

Please sign in to comment.