mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
parent
6d1f67f3be
commit
88aebb64f9
@ -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.
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user