Fix oversight in isDraftModified

If the original tiddler doesn’t exist then we should count the draft as
always having been modified
print-window-tiddler
Jermolene 2014-05-03 12:12:07 +01:00
rodzic a5e9ef9b5f
commit b2c1331c11
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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;
}