Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can an integer field accept 0 as a valid value when required ?

I am using RTC 4.0.1 and found that zero value is not accepted as valid integer value when "required value for type and state" is enabled

steps to reproduce:
- create PA - SCRUM
- add a custom integer type attribute and presentation
- enable "required value for type and state" for this attribute
- create a new work item
- observe: integer value is defaulted to zero
- save work item
- expected: work item is saved as value is set (zero is a valid integer value)
- observed: attribute not set error

is this a defect?

0 votes



One answer

Permanent link
No : behavior is as designed, and will be improved with enhancement Allow unset int/long attributes (47827)
Integer attributes can not be unset, they always have a value: at least the default value which is 0. In the UI, when you clear the field and save, it will immediately change to 0.
Also note that defect Zero not accepted as valid entry in an integer field when made mandatory (169684)
was rejected for this reason (as designed behavior)

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 14 '13, 8:22 a.m.

Question was seen: 8,319 times

Last updated: Feb 14 '13, 8:24 a.m.

Confirmation Cancel Confirm