Skip to content

Commit

Permalink
Fixed #133
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH01 committed Mar 9, 2023
1 parent 99b2ebd commit 93f4d18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- Fixed #128 - Sometimes the false platform image where deleted
- Fixed #129 - NOTFORSALE and ONLYMOBILE parameters are now read correctly when publishers are imported
- Fixed #132 - Genre import: Good/bad gameplay features, and good themes where not imported correctly
- Fixed #133 - Licence import/export: Release year was not read properly
- Hardware import/export: ONLY_STATIONARY and ONLY_HANDHELD parameters where not properly read
- Hardware Feature: need internet was not applied when hardware feature was added
- Hardware Feature import/export: NEEDINTERNET parameter was not properly read
Expand Down
1 change: 1 addition & 0 deletions docs/changelog_dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug fixes
- Fixed #132 - Genre import: Good/bad gameplay features, and good themes where not imported correctly
- Fixed #133 - Licence import/export: Release year was not read properly

## [v4.9.0-beta6]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ public AbstractBaseContent constructContentFromImportMap(Map<String, Object> map
} else {
goodGenreId = GenreManager.INSTANCE.getImportHelperMap().getContentIdByName((String) map.get("GOOD GENRE"));
}
Integer year = (Integer) map.get("year");
if (map.get("RELEASE YEAR") == null) {
year = null;
Integer year = null;
if (map.containsKey("RELEASE YEAR")) {
year = Integer.parseInt((String)map.get("RELEASE YEAR"));
}
return new Licence((String) map.get("NAME EN"), null, LicenceType.getTypeByIdentifier((String) map.get("LICENCE TYP")), badGenreId, goodGenreId, year);
}
Expand Down

0 comments on commit 93f4d18

Please sign in to comment.