Commit 7608fb26 authored by François Billioud's avatar François Billioud

fix a bug while saving last user name

parent 77e4848b
......@@ -44,7 +44,7 @@ var JSONIllustrationDocument = function(arg) {
JSONIllustrationDocument.prototype = new JSONDocument();//inherits methods from JSONDocument
JSONIllustrationDocument.prototype.saveEdition = function(content) {
this.setLastUser(getCurrentUser());
this.setLastUser(getCurrentUser().getName());
this.setContent(content);
this.setLastModification(currentTime());
this.setAsCurrentDocument();
......
......@@ -53,7 +53,7 @@ var JSONTextDocument = function(arg) {
JSONTextDocument.prototype = new JSONDocument();//inherits methods from JSONDocument
JSONTextDocument.prototype.saveEdition = function(content) {
this.setLastUser(getCurrentUser());
this.setLastUser(getCurrentUser().getName());
this.setContent(content);
this.setLastModification(currentTime());
this.setAsCurrentDocument();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment