Bug 1728600 - Submit button is disabled when DatePicker and TimePicker fields set as required in dialog
Summary: Submit button is disabled when DatePicker and TimePicker fields set as requir...
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.10.7
Hardware: Unspecified
OS: Unspecified
Target Milestone: GA
: 5.11.0
Assignee: Martin Hradil
QA Contact: Niyaz Akhtar Ansari
Red Hat CloudForms Documentation
Depends On:
Blocks: 1731991
TreeView+ depends on / blocked
Reported: 2019-07-10 08:31 UTC by Niyaz Akhtar Ansari
Modified: 2019-12-13 15:00 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1731991 (view as bug list)
Last Closed: 2019-12-13 15:00:58 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:

Attachments (Terms of Use)

Description Niyaz Akhtar Ansari 2019-07-10 08:31:08 UTC
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. create a new service dialog with a datepicker field
2. Set datepicker field required in dialog
2. add the service dialog to the catalog
3. in the service catalog select the service dialog and click on order
4. Try to Submit button in order page

Actual results:
In service order page Submit button is disabled when DatePicker and TimePicker fields set as required in dialog.

Expected results:
Submit button should be active when select any value

Additional info:


Comment 3 Martin Hradil 2019-07-11 12:05:42 UTC

Comment 4 CFME Bot 2019-07-19 13:23:52 UTC
New commits detected on ManageIQ/ui-components/master:

commit 14196161ae937ac3f23961c5250eacb6eea342e0
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jul 11 07:23:09 2019 -0400
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Thu Jul 11 07:23:09 2019 -0400

    dialogField.html - merge ng-switch-when for same type, add validation message to each

    only a few of the types would previously display the validation message on error
    adding to each type

    (and unified the switches to be able to tell which is which)


 src/dialog-user/components/dialog-user/dialogField.html | 60 +-
 1 file changed, 38 insertions(+), 22 deletions(-)

commit 1758d5bcad3605e10b266fc15fe62db226ef04ea
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jul 11 07:43:27 2019 -0400
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Thu Jul 11 07:43:27 2019 -0400

    dialogData.validateField - fix date required validation

    _.isEmpty(new Date()) is true, so no required date was valid
    switching to per-type switch, we only require the date to be a Date when required

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1728600

 src/dialog-user/services/dialogData.ts | 48 +-
 1 file changed, 30 insertions(+), 18 deletions(-)

Comment 6 Niyaz Akhtar Ansari 2019-07-30 12:06:45 UTC
Verified in Version

Note You need to log in before you can comment on or make changes to this bug.