Ticket #912 (closed defect: fixed)
Story.saveTiddler preserves the wrong fields when overwriting a tiddler
| Reported by: | SaqImtiaz | Owned by: | FND |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.5.1 |
| Component: | core | Version: | |
| Severity: | high | Keywords: | |
| Cc: |
Description
When a tiddler is overwritten, story.saveTiddler incorrectly preserves the fields of the tiddler being discarded rather than those of the tiddler we are saving.
In the following test case, tiddler A has a field called fruit with value banana. However, after renaming A to B, this field is not preserved. Rather the field of the discarded tiddler 'old B' with value orange is preserved: http://share.lewcid.org/rename%20bug.html
There is a proposed fix in the tiddler called Proposed code, the var extended Fields line is commented out and the replacement line is immediately below it. Reloading the file, running this code via Firebug console and trying the rename again shows that the fields are correctly preserved.

