Skip to content
Snippets Groups Projects
Commit 030dd1ee authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#676 - fixed creation if icon in existing database

parent caa897cb
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,7 @@ public class AccountService implements Resettable, AccessAllEntities<Account>, A ...@@ -147,6 +147,7 @@ public class AccountService implements Resettable, AccessAllEntities<Account>, A
final Icon newIcon = iconService.createIconReference(null, PLACEHOLDER_ICON, null); final Icon newIcon = iconService.createIconReference(null, PLACEHOLDER_ICON, null);
iconService.getRepository().save(newIcon); iconService.getRepository().save(newIcon);
placeholderAccount.setIconReference(newIcon); placeholderAccount.setIconReference(newIcon);
accountRepository.save(placeholderAccount);
LOGGER.debug(MessageFormat.format("Updated placeholder account: Created missing icon instance and set icon to \"{0}\"", PLACEHOLDER_ICON)); LOGGER.debug(MessageFormat.format("Updated placeholder account: Created missing icon instance and set icon to \"{0}\"", PLACEHOLDER_ICON));
} }
else if(icon.getBuiltinIdentifier() == null) else if(icon.getBuiltinIdentifier() == null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment