https://bugs.freedesktop.org/show_bug.cgi?id=72205

--- Comment #1 from [email protected] ---
Comment on attachment 90060
  --> https://bugs.freedesktop.org/attachment.cgi?id=90060
Procedure to reproduce the unwanted situation

Open LibreOffice. From the menu bar, select “File”, “New”, “Database”.

When the Database Wizard panel appears at Step 1, accept the default of “Create
a new database” - just select “Next>>”.

At step 2, select “No, do not register the database” , check “Open the database
for editing” and “Create tables using the table wizard”, then select “Finish”.

When the “Save As” panel appears, accept the default name of “New Database.odb”
and storage location (probably “My Documents”) - just select “Save”.

When the Table Wizard panel appears at Step 1, accept the default Category of
“Business” and Sample table of “Assets” - just select “Comments” then “>” to
move “Comments” from “Available fields” to “Selected fields”, then select
“Next>”.

At step 2, accept the default Field name of “Comments”, the Field type of “Memo
[LONGVARCHAR]” and Entry required of “No” - just select “Next>”.

At step 3, leave “Create a primary key” checked and “Automatically add a
primary key” selected. Check “Auto value”, then select “Next>”.

At step 4, accept the default table name of “Assets”, select “Create a form
based on this table” then select “Finish”.

When the Form Wizard appears at step 1, select “>>” to move “ID” and “Comments”
from “Available fields” to “Fields in the form”, then select “Next>”.

At step 2, no Subform is required, so just select “Next>”.

At step 5, select the second arrangement of controls (“Columnar - labels on
top”), then select “Finish”.

Select “Forms”, then “Assets”.

Type anything in the “Comments” field, then without moving the cursor out of
the “Comments” field, try to dismiss the form window. A warning “The content of
the current form has been modified. Do you want to save your changes?” will be
displayed - this is as I would expect. If you reply “No”, the window is
dismissed and subsequent redisplaying of the form show that the data input has
been correctly discarded - again, this is as I would expect. However, if you
reply “Yes”, the window is not dismissed - instead the warning is re-displayed
- this seems wrong to me. Whether you subsequently reply “Yes” or “No”, the
window is dismissed and subsequent redisplaying of the form shows that the data
input has been correctly saved, implying that the second warning was
unnecessary.

After further modification of the “Comments” field, it is similarly normally
necessary to reply twice to the warning if you try to dismiss the form window
without first saving changes. However, there is one exception to this - if all
text in the “Comments” field is deleted, it is only necessary to reply “Yes”
once to the warning before the form window is dismissed.

If the contents of the “Comments” field are modified then cursor is moved out
of the “Comments” field before trying to dismiss the form window, behaviour is
as I would expect - ie. the warning is only displayed once.

If, when defining the table, the “Comments” field is defined as Text [VARCHAR],
rather than as Memo [LONGVARCHAR], behaviour is also as I would expect.

I don’t think this is a duplicate of bug 65644, but may be related..

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to