https://issues.apache.org/bugzilla/show_bug.cgi?id=56888

            Bug ID: 56888
           Summary: [PATCH] XSSFDataValidation ignores "allow blank" read
                    from sheet, assumes true
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31943
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31943&action=edit
Patch to not overwrite allow blank value

XSSFDataValidation.XSSFDataValidation(CellRangeAddressList, CTDataValidation)
calls ctDdataValidation.setAllowBlank(true), overwriting the original value
read from the sheet. That value is therefore unavailable.

Attached is a patch from a colleague, with tests, to call setAllowBlank(true)
in the DataValidationHelper instead, so it still defaults to true for write,
but allows reading the actual value from the sheet.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to