Saved Links Disappear
Mysterious stat disappearances
This bug has been bothering me for some time.
When saving an article, links to other articles are recorded in the link table for statistics. However, these statistics rapidly become incorrect because almost immediately the records disappear.
As discovered today, this is caused by some code that checks for new autolinks when loading the article on subsequent views. This code is meant to save additional autolinks to the link table as well. The existing records are cleared first (to account for links that have been removed), but a variable necessary to include the save action was not populated in this case, so all the records for the current article were lost.
Fixed for the next build.