Closed (fixed)
Project:
Footnotes
Version:
4.0.x-dev
Component:
Footnotes
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2024 at 15:19 UTC
Updated:
27 Apr 2024 at 05:09 UTC
Jump to comment: Most recent
It seems that when updating content containing footnotes from 3.x to 4.x syntax (running 'drush footnotes:upgrade-3-to-4') fields of type "Text (formatted, long, with summary)" completely lose their summary text.
1. Setup field body having summary activated.
2. Create a node having this field. Enter a summary and a footnote in the old 3.x syntax: Lorem ipsum[fn]Footnote text[/fn]. Dolor met...
3. run drush footnotes:upgrade-3-to-4
You will see the summary is empty on node edit, which is a serious problem.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
scott_euser commentedThanks for spotting this! This should sort it, but can you confirm please?
I am unsure if the summary should also be parsed for existing footnotes - I am correct that it should not be? Ie, summaries are plain text and without footnotes right?
Comment #5
e5sego commentedI called the update script from this branch and the summary texts were retained.
A summary can also contain html. It always has the same format as the longtext. But in my opinion the use of footnotes in a summary would be extremely unusual.
Comment #6
scott_euser commentedThanks for testing! Actually it may not be completely unusual as I noted another issue on 3x branch described duplicate footnotes when citations were in the summary in #3428596: Footnotes repeating so I figured I might as well refactor to cover that as well. Look okay to you?
Comment #7
e5sego commentedLooks ok for me.
Comment #9
scott_euser commented