[Libreoffice-bugs] [Bug 121652] New: Option buttons in forms do not chow current value if it is boolean

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Nov 23 08:08:43 UTC 2018


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

            Bug ID: 121652
           Summary: Option buttons in forms do not chow current value if
                    it is boolean
           Product: LibreOffice
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: evgeny at kuznetsov.md

Created attachment 146936
  --> https://bugs.documentfoundation.org/attachment.cgi?id=146936&action=edit
Sample base with a form illustrating the unexpected behaviour

A group of option buttons can be used in a form to select a value from a
predefined set. If the underlying field is VARCHAR, INTEGER or any other type,
the option buttons reflect the current data available in the record and can be
used to modify that data. If, however, the underlying field is BOOLEAN, the
option buttons remain empty (or reflect a default value) but still can be used
to modify data.

Observed on LibreOffice 6.1.3.2 running on Debian 9 (package version
6.1.3-1~bpo9+2).

Steps to reproduce:
1. Create a table with BOOLEAN field.
2. Create a form based on that table.
3. Add a group to the form while having Element Wizards option on.
 3a. On first step of the wizard add exactly two options to the group.
 3b. On second step of the wizard select "No" (second option) for defaults.
 3c. On third step assign 0 (or FALSE) to one option, 1 (or TRUE) to the other
option.
 3d. On last step of the wizard select the BOOLEAN field in the table to save
your data to.
4. Populate the table with data.
5. Open the form and use [Ctrl+Alt+left] and [Ctrl+Alt+Right] (or corresponding
buttons) to scroll through the record. Observe condition of the option buttons.

Expected behavour:
If data exists, option buttons show the corresponding option.

Actual behaviour:
Option buttons remain empty even if data exists.

The attached sample file has a table with BOOLEAN, VARCHAR and INTEGER fields
as well as a form with corresponding controls (created using Form Wizard).
Option button groups are created for each field using the procedure described
on step 3 above. Table has 4 records with data. The form can be used to scroll
through existing records demonstrating option buttons behaviour for the three
fields: VARCHAR and INTEGER behave as expected, BOOLEAN behaviour is faulty.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181123/c1ff36d7/attachment.html>


More information about the Libreoffice-bugs mailing list