Fix an issue where the edit icon vanished and the default tab wasn't shown when advanced-editing a column in the table dialogue. Fixes #1704

This commit is contained in:
Murtuza Zabuawala 2016-09-19 15:37:04 +01:00 committed by Dave Page
parent cc0cb83277
commit 2440f89a71

View File

@ -112,8 +112,11 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
id: 'security', label: '{{ _("Security") }}', type: 'group',
// Show/Hide security group for nodes under the catalog
visible: function(args) {
if (args && 'node_info' in args && 'catalog' in args.node_info) {
return false;
if (args && 'node_info' in args) {
// If node_info is not present in current object then it might in its
// parent in case if we used sub node control
var node_info = args.node_info || args.handler.node_info;
return 'catalog' in node_info ? false : true;
}
return true;
}