Fix length and precision enable/disable issue when changing the data type for Domain node. Fixes #4644.

This commit is contained in:
Neel Patel 2019-08-21 16:27:23 +05:30 committed by Akshay Joshi
parent 094e5577e8
commit dc64ce331a
2 changed files with 18 additions and 1 deletions

View File

@ -20,4 +20,5 @@ Bug fixes
| `Issue #2706 <https://redmine.postgresql.org/issues/2706>`_ - Added ProjectSet icon for explain module.
| `Issue #2828 <https://redmine.postgresql.org/issues/2828>`_ - Added Gather Merge, Named Tuple Store Scan and Table Function Scan icon for explain module.
| `Issue #4643 <https://redmine.postgresql.org/issues/4643>`_ - Fix Truncate option deselect issue for compound triggers.
| `Issue #4643 <https://redmine.postgresql.org/issues/4643>`_ - Fix Truncate option deselect issue for compound triggers.
| `Issue #4644 <https://redmine.postgresql.org/issues/4644>`_ - Fix length and precision enable/disable issue when changing the data type for Domain node.

View File

@ -217,8 +217,16 @@ define('pgadmin.node.domain', [
m.set('min_val', o.min_val, {silent: true});
m.set('max_val', o.max_val, {silent: true});
}
else
m.set('is_tlength', false, {silent: true});
}
});
!m.get('is_tlength') && setTimeout(function() {
if(m.get('typlen')) {
m.set('typlen', null);
}
},10);
}
return !m.get('is_tlength');
},
@ -244,8 +252,16 @@ define('pgadmin.node.domain', [
m.set('min_val', o.min_val, {silent: true});
m.set('max_val', o.max_val, {silent: true});
}
else
m.set('is_precision', false, {silent: true});
}
});
!m.get('is_precision') && setTimeout(function() {
if(m.get('precision')) {
m.set('precision', null);
}
},10);
}
return !m.get('is_precision');
},