public inbox for [email protected]
help / color / mirror / Atom feed[pgAdmin][RM-7287]: Issue in loading user details on properties panel
2+ messages / 2 participants
[nested] [flat]
* [pgAdmin][RM-7287]: Issue in loading user details on properties panel
@ 2022-04-05 05:44 Nikhil Mohite <[email protected]>
2022-04-05 05:50 ` Re: [pgAdmin][RM-7287]: Issue in loading user details on properties panel Akshay Joshi <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Nikhil Mohite @ 2022-04-05 05:44 UTC (permalink / raw)
To: pgadmin-hackers
Hi Hackers,
Please find attached the patch for RM-7287:
<https://redmine.postgresql.org/issues/7287; Issue in loading user details
on properties panel
--
*Thanks & Regards,*
*Nikhil Mohite*
*Senior Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*
Attachments:
[application/octet-stream] RM-7287.patch (1.0K, 3-RM-7287.patch)
download | inline diff:
diff --git a/web/pgadmin/static/js/components/FormComponents.jsx b/web/pgadmin/static/js/components/FormComponents.jsx
index 0436b6c3..1e425215 100644
--- a/web/pgadmin/static/js/components/FormComponents.jsx
+++ b/web/pgadmin/static/js/components/FormComponents.jsx
@@ -223,6 +223,7 @@ const DATE_TIME_FORMAT = {
export function InputDateTimePicker({ value, onChange, readonly, controlProps, ...props }) {
let format = '';
let placeholder = '';
+ let regExp = /[a-zA-Z]/;
if (controlProps?.pickerType === 'Date') {
format = controlProps.format || DATE_TIME_FORMAT.DATE;
placeholder = controlProps.placeholder || 'YYYY-MM-DD';
@@ -239,7 +240,7 @@ export function InputDateTimePicker({ value, onChange, readonly, controlProps, .
};
/* Value should be a date object instead of string */
- value = _.isUndefined(value) ? null : value;
+ value = _.isUndefined(value) || regExp.test(value) ? null : value;
if (!_.isNull(value)) {
let parseValue = DateFns.parse(value, format, new Date());
if (!DateFns.isValid(parseValue)) {
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [pgAdmin][RM-7287]: Issue in loading user details on properties panel
2022-04-05 05:44 [pgAdmin][RM-7287]: Issue in loading user details on properties panel Nikhil Mohite <[email protected]>
@ 2022-04-05 05:50 ` Akshay Joshi <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Akshay Joshi @ 2022-04-05 05:50 UTC (permalink / raw)
To: Nikhil Mohite <[email protected]>; +Cc: pgadmin-hackers
Thanks, the patch applied.
On Tue, Apr 5, 2022 at 11:15 AM Nikhil Mohite <
[email protected]> wrote:
> Hi Hackers,
>
> Please find attached the patch for RM-7287:
> <https://redmine.postgresql.org/issues/7287; Issue in loading user
> details on properties panel
>
>
> --
> *Thanks & Regards,*
> *Nikhil Mohite*
> *Senior Software Engineer.*
> *EDB Postgres* <https://www.enterprisedb.com/;
> *Mob.No: +91-7798364578.*
>
--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*
*Mobile: +91 976-788-8246*
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-04-05 05:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 05:44 [pgAdmin][RM-7287]: Issue in loading user details on properties panel Nikhil Mohite <[email protected]>
2022-04-05 05:50 ` Akshay Joshi <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox