diff --git a/apps/users/templates/users/user_list.html b/apps/users/templates/users/user_list.html index 0902c3e73..c7c9b8b28 100644 --- a/apps/users/templates/users/user_list.html +++ b/apps/users/templates/users/user_list.html @@ -107,6 +107,9 @@ $(document).ready(function(){ $('.btn_export').click(function () { var users = []; var rows = table.rows('.selected').data(); + if(rows.length===0){ + rows = table.rows().data(); + } $.each(rows, function (index, obj) { users.push(obj.id) });