1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fix oversight in isDraftModified

If the original tiddler doesn’t exist then we should count the draft as
always having been modified
This commit is contained in:
Jermolene 2014-05-03 12:12:07 +01:00
parent a5e9ef9b5f
commit b2c1331c11

View File

@ -1077,6 +1077,9 @@ exports.isDraftModified = function(title) {
}
var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of", "tags"],
origTiddler = this.getTiddler(tiddler.fields["draft.of"]);
if(!origTiddler) {
return true;
}
if(tiddler.fields["draft.title"] !== tiddler.fields["draft.of"]) {
return true;
}