1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Fix #15656 - Saving UI displayed columns on a non database request fails

Fixes: #15656
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes
2020-12-21 14:45:23 +01:00
parent 94a53242bf
commit 802b6b41ba

View File

@@ -378,6 +378,11 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid
*/
sendColPrefs: function () {
if ($(g.t).is('.ajax')) { // only send preferences if ajax class
if (typeof g.db !== 'string' && typeof g.table !== 'string') {
// The server has nothing to do with it
// Issue: https://github.com/phpmyadmin/phpmyadmin/issues/15658
return;
}
var postParams = {
'ajax_request': true,
'db': g.db,