https://bugs.documentfoundation.org/show_bug.cgi?id=154769

            Bug ID: 154769
           Summary: XML Form Document: Many wrong data types won't be
                    shown as wrong types.
           Product: LibreOffice
           Version: 6.4.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 186599
  --> https://bugs.documentfoundation.org/attachment.cgi?id=186599&action=edit
XML Form Document - Test with older versions of LO - newer will show all with
wrong type.

This bug could only be reproduced with older LO versions, because newer version
will show all fields as fields with wrong data type. Tested here with LO
6.4.2.2:
Open the attached XML Form Document.
Data types are shown in first column. Second column contains all text controls
to show the data, which could be saved by the form in this datatype. There are
set many wrong values, but no text control is marked by a red border as field
with wrong value:
Date, DateTime, Hyperlink, Year, Month, Day, Time
As I understand the code all this fields are defined by
forms/source/xforms/datatyperepository.cxx. So It should be impossible to set a
string in a field for Time.

You could use other (special) form fields. Best field will be the formatted
field. But: XML form documents should throw an error if the data type is wrong
and they don't. You could create new data types and will get the right result
for this data types. So it seems to be only numeric types will be proofed the
right way.

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

Reply via email to