You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/04/23 03:47:43 UTC

[Issue 126102] User Field value not kept in synch with field

https://bz.apache.org/ooo/show_bug.cgi?id=126102

joezbugz@outlook.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joezbugz@outlook.com

--- Comment #2 from joezbugz@outlook.com ---
Failure to update displayed value in Fields dialog causes changes to user field
values on insertion:

In addition, the behavior described in the original post creates a risk of the
user inadvertently changing the value and format of User fields, when inserting
them in the document.

Replication steps:
The steps below describe how to observe the problem changing field values. The
same steps, but varying field formats as well, will show the formats also
changing.

Set up User Fields:
1. Open a new document
2. In the menu bar, select View: Field Names. This allows the user to see the
inserted field names as well as the values.
3. To open the Fields dialog: 
    a. In the menu bar, select Insert: Fields: Other... 
    -or- 
    b. Hit <Ctrl><F2>
4. In the Variables tab:
    a. In the Type box select User Field.
    b. In the Format box select Text (this will give good recognizable
flexibility on field contents)
    c. In the Name box type a unique name.
    d. In the Value box type a unique value.
    e. Click the green check-mark to apply the field to the document (this does
not insert it in the document text.)
    f. Repeat for another field name and value, so that there are two defined
fields for the document.
        Observe that for both fields the green Apply check-mark and the red
Delete X are both enabled.
    g. In the Selection box, click one field then the other.
        Observe that the name and value displayed in the text boxes below
update to the selected field values.

Testing:
1. In the selection box, select the first field.
2. Click the green Insert check-mark.
    a. Observe that the field value has been inserted in the document
    b. Observe that the red Delete X has become disabled. A User Field cannot
be deleted from the list of fields while it is in use in the document.
3. With the cursor in the document, Hit <Enter> after the inserted field, to
give some visible separation.
4. Return to the Fields dialog.
5. Click the first value in the Selection box
    a. Observe that the Name and Value have updated.
    b. Observe that the check-mark is enabled but the X is disabled.
6. Select and delete the name in the Name box.
7. Type the name of the second field in the Name box
    a. Observe that, as the name is completed, the X becomes enabled. This is
evidence that the second value is now selected.
    b. Observe that the Value field still contains the value of the first
field. 

The field value not being updated in the UI is the core of the problem. The
next few steps show how this can cause unintended changes to user field values.

8. Click the Insert button.
    Observe that the second field has been inserted into the document at the
cursor, but the inserted value is that of the first field.
9. In the Selection box, select the first field. 
    Note that its value is intact.
10. Select the second field. 
    Note that its value has changed to that of the first field.

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