Fixed failed to fetch utility error when click on refresh(any option) materialized view. Fixes #5447

It's a regression of #5213
This commit is contained in:
Khushboo Vashi 2020-04-28 11:00:23 +05:30 committed by Akshay Joshi
parent 6d1f67f3be
commit 88aebb64f9
2 changed files with 6 additions and 4 deletions

View File

@ -93,3 +93,4 @@ Bug fixes
| `Issue #5432 <https://redmine.postgresql.org/issues/5432>`_ - Fixed an issue where an internal user is not created if the authentication source is set to internal and ldap.
| `Issue #5439 <https://redmine.postgresql.org/issues/5439>`_ - Fixed an issue where the user is not able to create a server if login with an LDAP account.
| `Issue #5441 <https://redmine.postgresql.org/issues/5441>`_ - Fixed an issue where the search object not able to locate pg_toast_* tables in the pg_toast schema.
| `Issue #5447 <https://redmine.postgresql.org/issues/5447>`_ - Fixed failed to fetch utility error when click on refresh(any option) materialized view.

View File

@ -281,15 +281,16 @@ define('pgadmin.node.mview', [
if (!d)
return false;
while (i) {
var node_data = pgBrowser.tree.itemData(i);
let j = i;
while (j) {
var node_data = pgBrowser.tree.itemData(j);
if (node_data._type == 'server') {
server_data = node_data;
break;
}
if (pgBrowser.tree.hasParent(i)) {
i = $(pgBrowser.tree.parent(i));
if (pgBrowser.tree.hasParent(j)) {
j = $(pgBrowser.tree.parent(j));
} else {
Alertify.alert(gettext('Please select server or child node from tree.'));
break;