Project

General

Profile

Bug #9400

REGRESSION: Extra spaces inserted into date FILL-IN for formats with no date component separators

Added by Vladimir Tsichevski over 1 year ago. Updated over 1 year ago.

Status:
Internal Test
Priority:
Normal
Assignee:
Vladimir Tsichevski
Target version:
-
Start date:
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
15584
version_resolved:
reviewer:
production:
No
env_name:
topics:

History

#1 Updated by Vladimir Tsichevski over 1 year ago

I found a (most probably) regression:

  1. date FILL-IN
  2. SESSION:DATE-FORMAT='ymd'
  3. format 999999
  4. type in 012 and press TAB to force field validation

In OE there is no errors and the screen value is 24/01/02
In FWD this causes Invalid date input error, since the displayed value is has a space at the end of the line

The code most probably causing this is DateFormat.initScreen() function:

            if (isUnknown)
            {
               // Do NOT pad the rightmost component with spaces
               if (n < nComps - 1)
               {
                  for (int i = 0; i < compLength; i++)
                  {
                     sb.append(SPACE);
                  }
               }
            }

These extra spaces should not be appended for formats with no separators.

This issue was reported as #7143-1306.

#2 Updated by Vladimir Tsichevski over 1 year ago

  • version_reported set to 15584
  • % Done changed from 0 to 100
  • Status changed from New to WIP

Fixed in 9400a rev. 15585. Successfully tested in GUI. Review, please.

#3 Updated by Vladimir Tsichevski over 1 year ago

  • Status changed from WIP to Review

#5 Updated by Greg Shah over 1 year ago

  • reviewer Hynek Cihlar added

#6 Updated by Hynek Cihlar over 1 year ago

  • Status changed from Review to Internal Test

Code review 9400a. The changes look good. Please regression test the changes, including ChUI regression tests.

Also available in: Atom PDF