Handle display of roles with expiration set to infinity correctly. Fixes #3352

This commit is contained in:
Akshay Joshi 2019-02-25 10:24:11 +00:00 committed by Dave Page
parent c45675e019
commit a5d39003b6
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ Bug fixes
*********
| `Bug #3096 <https://redmine.postgresql.org/issues/3096>`_ - Ensure size stats are prettified on the statistics tab when the UI language is not English.
| `Bug #3352 <https://redmine.postgresql.org/issues/3352>`_ - Handle display of roles with expiration set to infinity correctly.
| `Bug #3418 <https://redmine.postgresql.org/issues/3418>`_ - Allow editing of values in columns with the oid datatype which are not an actual row OID.
| `Bug #3544 <https://redmine.postgresql.org/issues/3544>`_ - Make the Query Tool tab titles more concise and useful.
| `Bug #3583 <https://redmine.postgresql.org/issues/3583>`_ - Update CodeMirror to 5.43.0 to resolve issues with auto-indent.

View File

@ -2598,6 +2598,11 @@ define([
} else {
this.has_datepicker = true;
var self = this;
if (!_.isUndefined(data.value) && !_.isNull(data.value)
&& data.value.toLowerCase() === 'infinity') {
data.value = null;
}
this.$el.find('input').first().datetimepicker(
_.extend({
keyBinds: {