diff --git a/core/modules/commands/server.js b/core/modules/commands/server.js index e2ba31347..0e888a21e 100644 --- a/core/modules/commands/server.js +++ b/core/modules/commands/server.js @@ -170,7 +170,7 @@ var Command = function(params,commander,callback) { if(fields.revision) { delete fields.revision; } - state.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title})); + state.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title},state.wiki.getModificationFields())); var changeCount = state.wiki.getChangeCount(title).toString(); response.writeHead(204, "OK",{ Etag: "\"default/" + encodeURIComponent(title) + "/" + changeCount + ":\"", diff --git a/core/modules/story.js b/core/modules/story.js index 69cab2529..16ff5a74a 100644 --- a/core/modules/story.js +++ b/core/modules/story.js @@ -82,9 +82,11 @@ Story.prototype.addToStory = function(navigateTo,navigateFromTitle,options) { Story.prototype.saveStoryList = function(storyList) { var storyTiddler = this.wiki.getTiddler(this.storyTitle); this.wiki.addTiddler(new $tw.Tiddler( + this.wiki.getCreationFields(), {title: this.storyTitle}, storyTiddler, - {list: storyList} + {list: storyList}, + this.wiki.getModificationFields() )); }; diff --git a/core/modules/widgets/action-deletefield.js b/core/modules/widgets/action-deletefield.js index ad05c331c..8e9080f91 100644 --- a/core/modules/widgets/action-deletefield.js +++ b/core/modules/widgets/action-deletefield.js @@ -67,7 +67,7 @@ DeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) { removeFields[name] = undefined; } }); - this.wiki.addTiddler(new $tw.Tiddler(tiddler,removeFields)); + this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,removeFields,this.wiki.getCreationFields())); } return true; // Action was invoked }; diff --git a/core/modules/widgets/checkbox.js b/core/modules/widgets/checkbox.js index c349fd4bb..6ec2b0372 100644 --- a/core/modules/widgets/checkbox.js +++ b/core/modules/widgets/checkbox.js @@ -125,7 +125,7 @@ CheckboxWidget.prototype.handleChangeEvent = function(event) { } } if(hasChanged) { - this.wiki.addTiddler(new $tw.Tiddler(fallbackFields,tiddler,newFields,this.wiki.getModificationFields())); + this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields())); } }; diff --git a/core/modules/widgets/edit-bitmap.js b/core/modules/widgets/edit-bitmap.js index b94b24955..aaac6c696 100644 --- a/core/modules/widgets/edit-bitmap.js +++ b/core/modules/widgets/edit-bitmap.js @@ -299,7 +299,7 @@ EditBitmapWidget.prototype.saveChanges = function() { type = dataURL.substring(posColon+1,posSemiColon), text = dataURL.substring(posComma+1); var update = {type: type, text: text}; - this.wiki.addTiddler(new $tw.Tiddler(tiddler,update)); + this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields())); } }; diff --git a/core/modules/widgets/radio.js b/core/modules/widgets/radio.js index f466cf2d4..09a053c5b 100644 --- a/core/modules/widgets/radio.js +++ b/core/modules/widgets/radio.js @@ -79,7 +79,7 @@ RadioWidget.prototype.setValue = function() { var tiddler = this.wiki.getTiddler(this.radioTitle), addition = {}; addition[this.radioField] = this.radioValue; - this.wiki.addTiddler(new $tw.Tiddler({title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields())); + this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields())); } };