migration fix

This commit is contained in:
Efstratios Giannopoulos 2024-03-08 18:36:37 +02:00
parent 49f3da1314
commit a73eef6529
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ public class DescriptionTemplateXmlMigrationService {
try { try {
return UUID.fromString(section.getPage()).equals(UUID.fromString(page.getId())); return UUID.fromString(section.getPage()).equals(UUID.fromString(page.getId()));
} catch (Exception e){ } catch (Exception e){
if (section.getPage().toLowerCase(Locale.ROOT).equals(page.getId().toLowerCase(Locale.ROOT))) return true;
try { try {
return Integer.parseInt(section.getPage().replace("page_", "")) == page.getOrdinal(); return Integer.parseInt(section.getPage().replace("page_", "")) == page.getOrdinal();
} catch (Exception e1){ } catch (Exception e1){