Bug 158849

Summary: Creating serial letter into a single document does not work correctly.
Product: LibreOffice Reporter: RS <schmidt.roland>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: michael.stahl, raal
Priority: medium Keywords: bibisected, bisected, regression
Version: 7.3.0.3 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By: Michael Stahl
Bug Depends on:    
Bug Blocks: 102998    
Attachments: serial letter
source database
generated file
generated file from 7.2 alpha

Description RS 2023-12-24 08:54:39 UTC
Description:
The output is not correct.

Steps to Reproduce:
1. Print a serial letter with output into a single document
   Source database is a calc sheet.

Actual Results:
The first output document is correct, starting with the second the fields are not filled correctly.
Instead of creating one single document, it is working correctly with creating individual documents, even with printing one single document.
The error can be reproduced with version 7.5.9.2 too.
It is working correctly with Open Office 4.1.4 too.

Expected Results:
Correct assignement of the fields of single rows to a single page/document.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded
Comment 1 RS 2023-12-24 08:56:25 UTC
Created attachment 191583 [details]
serial letter
Comment 2 RS 2023-12-24 08:56:57 UTC
Created attachment 191584 [details]
source database
Comment 3 RS 2023-12-28 17:03:44 UTC
The last version with working serial letter printing into a single file was 7.2.7.2.
Comment 4 raal 2023-12-30 17:12:02 UTC
Created attachment 191657 [details]
generated file

Tested with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 71c28942fbc7f36e5bcd46c5a6cdfbb3fcbcd6a0
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

  - saved file looks good to me. Please check it, maybe I misunderstood the problem. Thanks.
Comment 5 RS 2023-12-30 19:50:07 UTC
The output you created looks not good at all.
The CALC-File on which the serial letter is based contains three rows and I expect three output pages too.
The adress block should consist of the character B to H followed be number 1 and the "Nummer" 1/2023 on page one, B-H 2 and "Nummer" 2/2023 on page two and B-H 3 and "Nummer" 3/2023 on page three.
Page one of output is correct, in page two the adress block is missing, "Nummer" is correct.
Page three contains the address block of page two and the "Nummer" of page 3.
Page four is empty and page five contains only the adress block which I expect in page 3.
If you want to see the correct output print the serial letter with output into single documents. That is working.
Comment 6 raal 2023-12-31 07:27:14 UTC
Created attachment 191663 [details]
generated file from 7.2 alpha

file generated with Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: ff2ba77f22b2e96f96f5537aec1705956b47583d
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

I believe this is the correct output, therefore regression, confirm.
Comment 7 raal 2023-12-31 07:42:41 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-7.3.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
 df462691a013a8e99d9a11c0620dd03016fedfab is the first bad commit
commit df462691a013a8e99d9a11c0620dd03016fedfab
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Thu Dec 23 12:19:13 2021 +0100

    source 6433dc223f6d21570e7132c4a580d186a5d5a334

127261: Revert "Revert "sw_fieldmarkhide: init fieldmark mode from options"" | https://gerrit.libreoffice.org/c/core/+/127261