Bug 100516 - [FILEOPEN] [DOCX] Nesting IF fields for conditional text not supported by Writer core
Summary: [FILEOPEN] [DOCX] Nesting IF fields for conditional text not supported by Wri...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on: 149660
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2016-06-21 12:39 UTC by Cor Nouws
Modified: 2023-01-17 16:48 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
image with fields and field names; wrong and correct (45.35 KB, image/png)
2016-06-21 12:40 UTC, Cor Nouws
Details
Minimized example file from Word 2016 (43.45 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-06-21 14:45 UTC, Gabor Kelemen (allotropia)
Details
The minimized example file in Word 2016 and Writer master (121.00 KB, image/png)
2022-06-21 14:53 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cor Nouws 2016-06-21 12:39:51 UTC
Open File https://bugs.documentfoundation.org/attachment.cgi?id=125792 (bug 100513)
Note right in the footer of the first page "6Pagina1van6"
The first 6 is the field that seems to be missing from the footer on the other pages..

Note right in the footer of second page and further "Pagina x van n"
There n is a number, not a field as in Word

Also see pdf from Word in  https://bugs.documentfoundation.org/attachment.cgi?id=125793
Comment 1 Cor Nouws 2016-06-21 12:40:46 UTC
Created attachment 125798 [details]
image with fields and field names; wrong and correct
Comment 2 Buovjaga 2016-06-26 11:37:57 UTC
Confirmed.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: ff25ea3d5ccf3a990767cbb1ef99037d3f84b072
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Built on June 26th 2016
Comment 3 Xisco Faulí 2017-03-10 19:50:07 UTC
Reproduced in

Version: 4.5.0.0.alpha0+
Build ID: 2851ce5afd0f37764cbbc2c2a9a63c7adc844311
Locale: ca_ES
Comment 4 QA Administrators 2018-06-26 02:43:02 UTC Comment hidden (obsolete)
Comment 5 jbarotin 2019-09-13 07:41:13 UTC
This bug still happen in this version :

Version: 6.3.1.2
Build ID: 1:6.3.1~rc2-0ubuntu0.18.04.1~lo1
Threads CPU : 12; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); UI-Language: fr-FR
Calc: threaded
Comment 6 Gabor Kelemen (allotropia) 2022-06-21 14:45:50 UTC
Created attachment 180875 [details]
Minimized example file from Word 2016
Comment 7 Gabor Kelemen (allotropia) 2022-06-21 14:53:16 UTC
Created attachment 180877 [details]
The minimized example file in Word 2016 and Writer master

Turns out this has IF fields in the footer, and the import of those is not supported correctly - see bug 149660 about the most trivial case.
This is not a trivial case however, there is a second IF field nested into the Else branch of the first. 
Nesting fields (at least IF fields for sure) is not supported by Writer core, so we would need a bit of feature development first.

bug 100524 is just a consequence of this one, I'd say.