fix(office): always check originalVersion

This commit is contained in:
yflory 2026-08-03 15:15:13 +02:00
parent df2b508e3a
commit 46eae55ba8

View File

@ -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) {