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

Fixed #694 - delete template groups too

parent c50f5d32
No related branches found
No related tags found
No related merge requests found
Pipeline #6248 failed
......@@ -81,7 +81,7 @@ public class DatabaseService
public void reset()
{
final List<Resettable> services = List.of(this.transactionService, templateService, categoryService, accountService, tagService, chartService, iconService, imageService);
final List<Resettable> services = List.of(this.transactionService, templateService, templateGroupService, categoryService, accountService, tagService, chartService, iconService, imageService);
for(Resettable service : services)
{
......
......@@ -49,10 +49,12 @@ public class TemplateGroupService implements Resettable, AccessAllEntities<Templ
@Override
public void deleteAll()
{
LOGGER.info("Resetting template groups...");
for(TemplateGroup templateGroup : getAllEntitiesAsc())
{
deleteTemplateGroup(templateGroup.getID());
}
LOGGER.info("All template groups reset.");
}
public void deleteTemplateGroup(int ID)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment