Bug 151261 - FILEOPEN DOCX STD Drop Down List does not work with "Choose an item." default entry
Summary: FILEOPEN DOCX STD Drop Down List does not work with "Choose an item." default...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:7.5.0 target:7.4.3
Keywords:
: 151364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-01 20:47 UTC by Regina Henschel
Modified: 2022-11-15 10:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Drop-down-list which does not work (20.75 KB, application/zip)
2022-10-01 20:47 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2022-10-01 20:47:53 UTC
Created attachment 182776 [details]
Drop-down-list which does not work

If you insert a drop-drop-list content control in Writer, you get a list with "Choose an item." as display name and empty Value. Add some items with Display Name and Value. Save it in Word. Such document is attached.

Open the document in Writer. The drop-down-list does not work. Resave the file to docx and open the document in Word. The content control is no longer a drop-down-list.

This problem does not exist, if all entries in the list have Display Name and Value. The case with no Value is in the UI of Word only possible with the default item "Choose an item."

Tested with Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c3b5eea4304ad6815b491f549fce008a9630c213
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded
Comment 1 Regina Henschel 2022-10-01 20:57:28 UTC
"If you insert a drop-drop-list content control in Writer"
should be
"If you insert a drop-drop-list content control in Word"
Comment 2 Miklos Vajna 2022-10-07 14:23:41 UTC
Confirmed, I'll take a look.
Comment 3 Hossein 2022-10-07 14:36:01 UTC
(In reply to Miklos Vajna from comment #2)
> Confirmed, I'll take a look.
@Miklos:
Do you think it is related to tdf#151364?
Comment 4 Miklos Vajna 2022-10-07 14:37:49 UTC
I expect bug 151364 is a duplicate of this bug, but let's wait for the fix of this one to be sure.
Comment 5 Commit Notification 2022-10-10 14:06:47 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/f726fbc2699b05199a8dec3055710a7131e0aad6

tdf#151261 DOCX import: fix dropdown SDT when the item display text is missing

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Xisco Faulí 2022-10-10 15:01:36 UTC
*** Bug 151364 has been marked as a duplicate of this bug. ***
Comment 7 Commit Notification 2022-10-11 14:34:36 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/e2095410b00b8a374ba35ea5fab584a79a46cfe2

tdf#151261 DOCX import: fix dropdown SDT when the item display text is missing

It will be available in 7.4.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.