mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
fix(office): always check originalVersion
This commit is contained in:
parent
df2b508e3a
commit
46eae55ba8
@ -3579,6 +3579,10 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null
|
||||
|
||||
APP.startNew = isNew;
|
||||
|
||||
if (!content.originalVersion) {
|
||||
content.originalVersion = getOriginalVersion();
|
||||
}
|
||||
|
||||
var version = OOCurrentVersion.currentVersion + '/';
|
||||
var msg;
|
||||
// Old version detected: use the old OO and start the migration if we can
|
||||
@ -3589,9 +3593,6 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null
|
||||
if (content.version === 2 || content.version === 3) {
|
||||
version = 'v2b/';
|
||||
}
|
||||
if (!content.originalVersion) {
|
||||
content.originalVersion = getOriginalVersion();
|
||||
}
|
||||
APP.migrate = true;
|
||||
// Registedred ~~users~~ editors can start the migration
|
||||
if (common.isLoggedIn() && !readOnly) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user