Fix issue where property dialog of column should open properly for EPAS v12. Fixes #4343

This commit is contained in:
Akshay Joshi 2019-06-11 17:48:01 +05:30
parent 5437a8adab
commit d774a0ff67
2 changed files with 4 additions and 1 deletions

View File

@ -23,4 +23,5 @@ Bug fixes
| `Bug #4310 <https://redmine.postgresql.org/issues/4310>`_ - Ensure that the Return key can be used to submit the Master Password dialogue.
| `Bug #4317 <https://redmine.postgresql.org/issues/4317>`_ - Ensure that browser auto-fill doesn't cause Help pages to be opened unexpectedly.
| `Bug #4320 <https://redmine.postgresql.org/issues/4320>`_ - Fix issue where SSH tunnel connection using password is failing, it's regression of Master Password.
| `Bug #4329 <https://redmine.postgresql.org/issues/4329>`_ - Fix an initialisation error when two functions with parameters are debugged in parallel.
| `Bug #4329 <https://redmine.postgresql.org/issues/4329>`_ - Fix an initialisation error when two functions with parameters are debugged in parallel.
| `Bug #4343 <https://redmine.postgresql.org/issues/4343>`_ - Fix issue where property dialog of column should open properly for EPAS v12.

View File

@ -230,6 +230,7 @@ define('pgadmin.node.column', [
if (
m.top && ((
!_.isUndefined(m.top.get('oid')) &&
!_.isUndefined(m.top.get('primary_key')) &&
m.top.get('primary_key').length > 0 &&
!_.isUndefined(m.top.get('primary_key').first().get('oid'))
) || (
@ -255,6 +256,7 @@ define('pgadmin.node.column', [
}
// If primary key already exist then disable.
if (m.top && !_.isUndefined(m.top.get('oid')) &&
!_.isUndefined(m.top.get('primary_key')) &&
m.top.get('primary_key').length > 0 &&
!_.isUndefined(m.top.get('primary_key').first().get('oid'))) {