Bug 1464243 - date dialogs with "Show Past Dates" unchecked still allow selection of past dates
date dialogs with "Show Past Dates" unchecked still allow selection of past d...
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: GA
: cfme-future
Assigned To: Roman Blanco
Dave Johnson
: TestOnly, ZStream
Depends On:
Blocks: 1498542
  Show dependency treegraph
Reported: 2017-06-22 15:01 EDT by Saif Ali
Modified: 2018-06-18 01:45 EDT (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1498542 (view as bug list)
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Show past dates (98.58 KB, image/png)
2018-01-16 12:23 EST, Shveta
no flags Details

  None (edit)
Description Saif Ali 2017-06-22 15:01:13 EDT
Description of problem:
date dialogs with "Show Past Dates" unchecked still allow selection of past dates

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

How reproducible:
see attached video

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
Comment 3 Bo Yao 2017-07-25 11:33:22 EDT
The problem is actually more severe than expected here. In one page load, all Date Pickers in the same dialog can only be the same start date, because calDateFrom is stored as global variable (ManageIQ.calendar.calDateFrom). 
Also, this has a potential problem with zone. In my time zone (New York -5:00), after get start date work and previous dates not selectable, I can still select yesterday (can't select the day before yesterday).
Comment 5 CFME Bot 2017-09-14 05:08:34 EDT
New commit detected on ManageIQ/manageiq-ui-classic/master:

commit 8949d8d7a5e592af11a4c59c0b62d5272a342c68
Author:     Bo Yao <boyao@redhat.com>
AuthorDate: Wed Jul 26 11:49:32 2017 -0400
Commit:     Bo Yao <boyao@redhat.com>
CommitDate: Wed Jul 26 11:49:32 2017 -0400

    Add per datepicker property for start date

 app/views/miq_ae_customization/_dialog_sample.html.haml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 8 Shveta 2018-01-16 12:23 EST
Created attachment 1382108 [details]
Show past dates

Still showing past dates even when the "Show past dates " switch says "No"

Build :
Appliance :
Service : Generic.

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