When mail merged documents are saved as individual documents, filenames should start from 1, not 0. 0 comes from OO, not clear why. Natural counting is from 1.
Steps to Reproduce (example documents in Bug 106959):
1. create a new empty writer document (odt);
2. with Tools -> "Mail Merge Wizard" select an "Address List" (a simple ods file with a field of data);
3. open "Data Sources" (CTRL+SHIFT+F4);
4. insert the field in the document with drag and drop after the table position;
5. on the "Mail Merge toolbar" select "Save merged documents" -> "Save as individual document" -> Save Documents;
6. select a name for merged individual files.
Reproduced: name_0, name_1....
Expected: name_1, name_2.....
Jan-Marek, I noticed you had once (upon time) some bug about filenames, so please comment. Of course, feel free to silently remove yourself from CC trap.
This is a duplicate of an already reported bug. Need to find it.
(In reply to Alex Thurgood from comment #2)
> This is a duplicate of an already reported bug. Need to find it.
Couldn't find and really tried. Please confirm this one.
Hmm, yes, I couldn't find anything either after searching for a while, even among the really old closed stuff.
Confirming with LO5432 OSX 10.12.6
The worst bit is that I distinctly remember encountering this bug ages ago when confirming another mailmerge bug - oh well.
A code pointer: see construction of sOutPath in IMPL_LINK_NOARG(SwMMResultSaveDialog, SaveOutputHdl_Impl, weld::Button&, void) in sw/source/ui/dbui/mmresultdialogs.cxx.
(In reply to Mike Kaganski from comment #6)
> A code pointer: see construction of sOutPath in
> IMPL_LINK_NOARG(SwMMResultSaveDialog, SaveOutputHdl_Impl, weld::Button&,
> void) in sw/source/ui/dbui/mmresultdialogs.cxx.
Thank you for the code pointer. Please review the change: https://gerrit.libreoffice.org/#/c/66658/
Aditya committed a patch related to this issue.
It has been pushed to "master":
tdf#109120 : Mailmerge filenames starting with 1 (one)
It will be available in 6.3.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:
Affected users are encouraged to test the fix and report feedback.