Bug 1195877

Summary: Calendar does not display for date/date-time control used in Service dialog for custom button
Product: Red Hat CloudForms Management Engine Reporter: Greg McCullough <gmccullo>
Component: UI - OPSAssignee: Shveta <sshveta>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: low Docs Contact:
Priority: medium    
Version: 5.3.0CC: jhardy, nachandr, obarenbo, sshveta, xlecauch
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1202581 (view as bug list) Environment:
Last Closed: 2015-06-16 12:51:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1202581    
Attachments:
Description Flags
date time pop up none

Description Greg McCullough 2015-02-24 18:42:47 UTC
Description of problem: If a service dialog with a date or date-time control is used as part of a custom button the popup calendar control does not display when clicking on the field.  The calendar does show if the exact same dialog is used as part of a Service Catalog Item for ordering a service.


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


How reproducible: Always


Steps to Reproduce:
1. Create a service dialog and add a field of type date or date/time
2. In Automate -> Customization -> Buttons setup a button for a VM that uses this service dialog.  (Dialog can point to anything in automate since you do not need to submit the dialog it will not be run)
3. Goto any VM and run the Custom button from that was just created and click on the date field.  A calendar control should appear but does not.

4. Create a generic service and attach the same dialog from step 1 to it.
5. Order the service so the dialog is displayed and click on the field.  A popup calendar control should appear.

Actual results: Calendar control does not appear when click on a date or date/time field in a service dialog.


Expected results: Calendar control should appear


Additional info:
The calendar control does not appear for a custom button attached to a service as well.  To test add custom buttons to the service catalog item from step #4 and order the service.  When the new service item is available run the custom button and test same as above.

Comment 2 CFME Bot 2015-03-03 22:15:47 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/7f024d496eeb91ce29bdf9eb2f0cb7f37fb53a47

commit 7f024d496eeb91ce29bdf9eb2f0cb7f37fb53a47
Author:     Erik Clarizio <eclarizi>
AuthorDate: Mon Mar 2 12:52:02 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Mon Mar 2 13:27:17 2015 -0800

    Add javascript to execute calendar building for date/datetime fields
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1195877

 vmdb/app/controllers/service_controller.rb | 11 +++++++++++
 vmdb/app/controllers/vm_common.rb          | 10 ++++++++++
 2 files changed, 21 insertions(+)

Comment 3 CFME Bot 2015-03-16 23:40:52 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=e31844f271d0c207b197223cac5253a3d709d4be

commit e31844f271d0c207b197223cac5253a3d709d4be
Author:     Erik Clarizio <eclarizi>
AuthorDate: Mon Mar 2 12:52:02 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Mon Mar 16 16:38:43 2015 -0700

    Add javascript to execute calendar building for date/datetime fields
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1195877
    
    Conflicts:
    	vmdb/app/controllers/service_controller.rb

 vmdb/app/controllers/service_controller.rb | 11 +++++++++++
 vmdb/app/controllers/vm_common.rb          | 10 ++++++++++
 2 files changed, 21 insertions(+)

Comment 5 Shveta 2015-04-21 22:21:27 UTC
Created attachment 1017158 [details]
date time pop up

Verified in 5.4.0.0.22.20150420163946_26004d1

Comment 7 errata-xmlrpc 2015-06-16 12:51:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1100.html