From 71526ac79f6c5a9e6c0b87d17b67158db16a7172 Mon Sep 17 00:00:00 2001 From: Nikhil Mohite Date: Mon, 14 Jun 2021 16:59:04 +0530 Subject: [PATCH] Ensure that the calendar control should be disabled in the properties panel for Role. Fixes #6469. --- docs/en_US/release_notes_5_4.rst | 1 + web/pgadmin/static/js/backform.pgadmin.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/en_US/release_notes_5_4.rst b/docs/en_US/release_notes_5_4.rst index 059347668..c1b99649b 100644 --- a/docs/en_US/release_notes_5_4.rst +++ b/docs/en_US/release_notes_5_4.rst @@ -32,6 +32,7 @@ Bug fixes | `Issue #4203 `_ - Fixed the issue of renaming the database by another user. | `Issue #6404 `_ - Ensure that the Query Tool connection string should not be changed as per the 'Query Tool tab title'. | `Issue #6466 `_ - Ensure that the user should be able to add members in Login/Role group while creating it. +| `Issue #6469 `_ - Ensure that the calendar control should be disabled in the properties panel for Role. | `Issue #6473 `_ - Disable browser password saving in the runtime. | `Issue #6478 `_ - Fixed duplicate SQL issue for tables with more than one partition. | `Issue #6482 `_ - Fixed an issue where the Foreground Color property of server dialog does not work. diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index 0efd640e5..26267ff9d 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -3104,6 +3104,11 @@ define([ return (_.isFunction(f) ? !!f(m) : !!f); }; + // disable when mode is properties. + if(data.mode == 'properties') { + data.disabled = true; + } + // Evaluate the disabled, visible, and required option _.extend(data, { disabled: evalF(data.disabled, this.model),