Bug 95285 - Numbered bibliography entries duplicate when inserted above previous entry
Summary: Numbered bibliography entries duplicate when inserted above previous entry
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 133266 143140 (view as bug list)
Depends on:
Blocks: Bibliography
  Show dependency treegraph
 
Reported: 2015-10-24 01:29 UTC by Chris Cameron
Modified: 2025-02-10 10:37 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer window showing duplicate citation numbers for different bibliography entries (422.22 KB, image/png)
2015-10-24 01:29 UTC, Chris Cameron
Details
Writer document with entry missing from the bibliography index. (36.98 KB, application/vnd.oasis.opendocument.text)
2025-02-10 10:19 UTC, Mihai Vasiliu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cameron 2015-10-24 01:29:02 UTC
Created attachment 119916 [details]
Writer window showing duplicate citation numbers for different bibliography entries

* Open a new document, put in several paragraphs of text
* Put cursor at end of the first paragraph
* Click "Insert", "Indexes and Tables", "Bibliography Entry"
* Click "From bibliography database"
* Select an entry, click "Insert"
* Put cursor at the end of the third paragraph
* Insert in a second citation for a different entry
* Close "Insert Bibliography Entry" window
* Put cursor on new line
* Click "Insert", "Indexes and Tables", "Indexes and Tables"
* For "Type" select "Bibliography"
* Check the box "Number entries"
* Click "OK"
* Insert a new, third citation after the second paragraph

For me, I see my citations now labeled [1],[2],[2]. If I put my cursor just in front of the third [2] and hit space, it'll change to [3].


I'd expect that all citations after the newly inserted citation would increment by one.
Comment 1 Buovjaga 2015-10-25 17:27:04 UTC
Reproduced.

Win 7 Pro 64-bit, Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: fi-FI (fi_FI)
Comment 2 QA Administrators 2017-09-01 11:16:42 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-12-03 14:50:00 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2021-07-17 15:48:53 UTC
*** Bug 143140 has been marked as a duplicate of this bug. ***
Comment 5 Dieter 2022-05-29 14:36:19 UTC
*** Bug 133266 has been marked as a duplicate of this bug. ***
Comment 6 Dieter 2022-05-29 14:39:36 UTC
Still present in

Version: 7.3.4.1 (x64) / LibreOffice Community
Build ID: 13668373362b52f6e3ebcaaecb031bd59a3ac66b
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

You can also use attachment 161267 [details] and insert a new index entry before an existing one to reproduce the problem.
Comment 7 dolezvo1 2023-02-03 13:17:04 UTC
I believe updating all citation numbers can be done with Tools>Update>Update All, but I don't see a reason why it shouldn't be done automatically.
Comment 8 QA Administrators 2025-02-03 03:10:16 UTC Comment hidden (obsolete)
Comment 9 Mihai Vasiliu 2025-02-10 10:18:35 UTC
I can reproduce in 

Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: CL threaded

Additional information:

If I save and close the document, when reopening it, the entries are correctly numbered as 1,2,3, but the Bibliography index at the end contains only two entries instead of 3.

Clicking on Update Bibliography entries fixes the issues until the next entry is added, which will repeat the problem again.
Comment 10 Mihai Vasiliu 2025-02-10 10:19:37 UTC
Created attachment 199105 [details]
Writer document with entry missing from the bibliography index.

Note that opening this document will show the correct indicies in the text, but only 2 entries in the Bibliography table.
You must add another entry to reproduce the issue.
Comment 11 Mihai Vasiliu 2025-02-10 10:37:26 UTC
I can reproduce it with the exact same steps in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4