Fixed an issue where the user should not be able to add columns in the creation order after 50 columns.

Regression of the initial patch.

Fixes #5043
pull/32/head
Satish V 2020-04-27 18:01:09 +05:30 committed by Akshay Joshi
parent 76eb3e9b67
commit b80784f5a1
1 changed files with 2 additions and 2 deletions

View File

@ -1038,8 +1038,8 @@ define('pgadmin.browser', [
i = items.eq(e); i = items.eq(e);
d = ctx.t.itemData(i); d = ctx.t.itemData(i);
if (d._type === 'column') { if (d._type === 'column') {
if (pgAdmin.numeric_comparator(d._id, _data._id) != -1) if (pgAdmin.numeric_comparator(d._id, _data._id) == -1)
return true; return false;
} else { } else {
if (pgAdmin.natural_sort(d._label, _data._label) != 1) if (pgAdmin.natural_sort(d._label, _data._label) != 1)
return true; return true;