mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Correct schema should be displayed in Materialized View dialog. Fixes #3916
This commit is contained in:
@@ -130,9 +130,10 @@ define('pgadmin.node.mview', [
|
||||
initialize: function(attrs, args) {
|
||||
if (_.size(attrs) === 0) {
|
||||
// Set Selected Schema and Current User
|
||||
var userInfo = pgBrowser.serverInfo[args.node_info.server._id].user;
|
||||
var schemaLabel = args.node_info.schema._label || 'public',
|
||||
userInfo = pgBrowser.serverInfo[args.node_info.server._id].user;
|
||||
this.set({
|
||||
'schema': 'public', 'owner': userInfo.name,
|
||||
'schema': schemaLabel, 'owner': userInfo.name,
|
||||
}, {silent: true});
|
||||
}
|
||||
pgBrowser.Node.Model.prototype.initialize.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user