fix
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 22 Nov 2013 10:48:55 +0000 (11:48 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 2 Dec 2013 13:50:53 +0000 (14:50 +0100)
src/editor/modules/data/data.js

index a8144cb..7f60004 100644 (file)
@@ -106,7 +106,7 @@ return function(sandbox) {
                     url: '/' + gettext('editor') + '/' + document_id + '/revert',
                     data: JSON.stringify(options),
                     success: function(data) {
-                        document_version = data.version;
+                        document_version = data.current_version;
                         reloadHistory();
                         sandbox.publish('documentReverted', data);
                     },