Issue 83746 - References to footnotes are not updated when inserting new footnotes
Summary: References to footnotes are not updated when inserting new footnotes
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOO300m5
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 102272 112230 (view as issue list)
Depends on:
Reported: 2007-11-19 04:27 UTC by calestyo
Modified: 2017-05-20 11:19 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

example for the missing reordering of cross-references to footnotes (12.90 KB, application/vnd.oasis.opendocument.text)
2008-01-19 00:34 UTC, calestyo
no flags Details
Resulting file (9.81 KB, application/vnd.oasis.opendocument.text)
2008-01-20 10:57 UTC, kpalagin
no flags Details
my screenshot (10.62 KB, image/png)
2008-01-20 16:09 UTC, helenrussian
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description calestyo 2007-11-19 04:27:18 UTC
When I have the following text order:
foo bar baz(footnote 1)

foo bar baz

foo bar baz(footnote 2)

bar baz foo(reference to footnote 2; shows "2")

and then insert a new footnote before #2 like this:
foo bar baz(old and new footnote 1)

foo bar baz(new footnote 2

foo bar baz(old footnote 2/new footnote 3)

bar baz foo(reference to old footnote 2/new footnote 3; still shows "2")

the footnote still shows the old number.
This might also apply to endnotes, and it might even apply links to footnote of
the type page, Above/Below, Chapter, ect.
Of course with those other types of links,... one would have to change the text
in a different manner to check if it also happens.

It think links to footnotes/endnotes should always be automatically updated,
when new footnotes are inserted, because otherwise, the text could become

Best wishes,
Comment 1 michael.ruess 2007-11-19 10:50:05 UTC
Reassigned to ES.
Comment 2 kpalagin 2008-01-15 20:47:51 UTC
please provide sample file.
Comment 3 calestyo 2008-01-19 00:34:29 UTC
Created attachment 50988 [details]
example for the missing reordering of cross-references to footnotes
Comment 4 calestyo 2008-01-19 00:35:33 UTC
Sorry for the delay. Hope this helps. If not add a comment.
Comment 5 kpalagin 2008-01-20 10:55:45 UTC
Can't reproduce using OO2.3.1. - see resulting file.
Comment 6 kpalagin 2008-01-20 10:57:17 UTC
Created attachment 51020 [details]
Resulting file
Comment 7 helenrussian 2008-01-20 16:07:16 UTC
Confirm with OOo 2.3.1 on OpenSUSE 10.3.

If I'm inserting new footnote then cross-reference's target updated, but
cross-reference's value not updated (should be value “4” but shows “3”.)
Comment 8 helenrussian 2008-01-20 16:09:07 UTC
Created attachment 51025 [details]
my screenshot
Comment 9 aziz_cs 2008-02-02 03:06:14 UTC
I replicated this bug on OpenOffice 2.3.1/Windows XP.  Even though the reference
to the footnote does not update( the number is the same), clicking on the
reference goes to the correct footnote explanation. 
Here are some follow-up tests I did:   

Case A:  References to footnotes are correctly updated when other footnotes are

* Open OpenOffice.
* Click “New” --> “Text Document”.
* Insert three footnotes.  (Insert --> footnote)  

Put a space between each footnote for clarity.   

* Add a reference to the third footnote.( Insert --> “Cross-Reference”) 
* Delete the second footnote ( highlight it and press backspace)

The reference to the footnote is correctly updated.  Furthermore, it indicates
the problem might reside with updating footnote references when adding new
Case B: Deleting a footnote correctly deletes its corresponding footnote

Case C (close variation of original): After Inserting a footnote between the two
other footnotes, delete it and re-insert it, the footnote reference is correctly

* Open OpenOffice.
* Click “New” --> “Text Document”.
* Insert two footnotes.  (Insert --> footnote)  

Put a space between each footnote for clarity.   

* Add a reference to the second footnote.( Insert --> “Cross-Reference”) 
* Add another footnote between the two current footnotes.

Notice the footnote reference is incorrect(the original bug).   

* Delete the middle footnote, the one that was inserted last ( highlight it and
press backspace).
* Click “Edit” --> “Undo Last”.

This will bring back the deleted middle footnote and surprisingly the footnote
reference is correctly updated.  This is how the bug can be circumvented.    
Comment 10 eric.savary 2008-09-16 13:36:39 UTC
@OS/OD: take the very first description, it's enough to reproduce the problem.
Well trying to sum up (once again :) :
- Insert footnote 1
- Insert a reference to footnote 1
- Insert a new footnote *before* footnote 1
-> footnote 1 becomes "2" (correct) but the reference remains "1" when it should
become "2"

Not a serious problem because F9 (update fields) sets the correct count.

What makes me reassign to you is the fact that apart from F9 and printing, the
field should be automatically updated "more often".
Indeed, under "Tools - Options - Writer - General", "Update -
Automatically - Fields" is active. I'd expect that when saving the document and
furthermore, reloading it, the reference would then be updated.
Comment 11 eric.savary 2009-05-27 20:10:24 UTC
*** Issue 102272 has been marked as a duplicate of this issue. ***
Comment 12 michael.ruess 2010-07-13 11:28:24 UTC
*** Issue 112230 has been marked as a duplicate of this issue. ***
Comment 13 Marcus 2017-05-20 11:19:34 UTC
Reset assigne to the default "".