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

            Bug ID: 114955
           Summary: Copy table with "Create new field as primary key"
                    should demote the existing primary key to simple field
           Product: LibreOffice
           Version: 5.4.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: serval2...@yahoo.fr

Description:
In Base part, in dialog process for duplicate a table, checking "Create new
field as primary key" should indeed create a new field with Name indicated (by
default "ID") but the existing primary key fields should be demoted to simple
fields.

Steps to Reproduce:
1. Enable experiment features (Tools/Options/Advanced)
2. Retrieve file https://bugs.documentfoundation.org/attachment.cgi?id=138647
3. Open file and go to "Tables panel"
4. Right click on the only table and select "Copy"
5. Right click on background of table panel and select "Paste..."
=> Copy table dialog opens
6. Let "Definition and data" and click on "Create new field as primary key"
7. Click Next
8. Click double arrow towards right to put both fields from left to right panel
9. Click Next

Actual Results:  
There are 2 fields for primary key:
- ID (as expected)
- cardinal (not expected)

Expected Results:
Only field ID should be primary key


Reproducible: Always


User Profile Reset: No



Additional Info:
Reproduced with master sources updated yesterday


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Firefox/52.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to