Bug 1439942 - Service :dialog: Text box element with Integer Type shows default value '0' without even assigning one
Summary: Service :dialog: Text box element with Integer Type shows default value '0' w...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: GA
: cfme-future
Assignee: eclarizi
QA Contact: Shveta
URL:
Whiteboard: service:dialog
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-06 22:50 UTC by Shveta
Modified: 2018-10-02 14:33 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-02 14:30:52 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot1 (93.24 KB, image/png)
2017-04-06 22:50 UTC, Shveta
no flags Details
screenshot2 (73.97 KB, image/png)
2017-04-06 22:51 UTC, Shveta
no flags Details

Description Shveta 2017-04-06 22:50:55 UTC
Created attachment 1269494 [details]
screenshot1

Description of problem:


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

How reproducible:


Steps to Reproduce:
1. Create a dialog with Text Box element .(screenshot 1)
2. Select Value Type "Integer" . Do not assign any default value
3. Use this dialog in a catalog item. Order catalog item.
text box shows default value = 0 (screenshot 2) 

Actual results:


Expected results:


Additional info:

Comment 2 Shveta 2017-04-06 22:51:21 UTC
Created attachment 1269495 [details]
screenshot2

Comment 3 Greg McCullough 2017-04-18 21:14:04 UTC
Looked into this issue a little more:

OpsUI translates the empty value to 0 ("".to_i or nil.to_i both do this)
SUI leaves the value blank.

In both UIs the value is really empty and the required flag would cause field validation to raise an error when submitting the dialog.

Makes sense to keep a blank value when no default is given so the "Required" flag works as expected.

Comment 4 Josh Carter 2018-10-02 14:30:52 UTC
Dear customer, 

The CloudForms team is reviewing the current CloudForms Bug(defect) backlog in order to target engineering efforts. We are closing any bugs for versions that no longer have an active errata stream or that have hit their age limit. We are committing to better management of the backlog as we move forward. If you have an bug that you are still able to reproduce on a current version of CloudForms please open a new bug. 

If you have any concerns about this, please let us know.

Thanks and regards!

Comment 5 Josh Carter 2018-10-02 14:33:19 UTC
Dear customer, 

The CloudForms team is reviewing the current CloudForms Bug(defect) backlog in order to target engineering efforts. We are closing any bugs for versions that no longer have an active errata stream or that have hit their age limit. We are committing to better management of the backlog as we move forward. If you have an bug that you are still able to reproduce on a current version of CloudForms please open a new bug. 

If you have any concerns about this, please let us know.

Thanks and regards!


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