|
|
@ -18,6 +18,7 @@ import info.bukova.isspst.services.munits.MUnitService;
|
|
|
|
import info.bukova.isspst.services.numberseries.NumberSeriesService;
|
|
|
|
import info.bukova.isspst.services.numberseries.NumberSeriesService;
|
|
|
|
import info.bukova.isspst.services.requirement.RequirementTypeService;
|
|
|
|
import info.bukova.isspst.services.requirement.RequirementTypeService;
|
|
|
|
import info.bukova.isspst.services.settings.GlobalSettingsService;
|
|
|
|
import info.bukova.isspst.services.settings.GlobalSettingsService;
|
|
|
|
|
|
|
|
import info.bukova.isspst.services.settings.SeasonException;
|
|
|
|
import info.bukova.isspst.services.settings.SeasonService;
|
|
|
|
import info.bukova.isspst.services.settings.SeasonService;
|
|
|
|
import info.bukova.isspst.services.users.PermissionService;
|
|
|
|
import info.bukova.isspst.services.users.PermissionService;
|
|
|
|
import info.bukova.isspst.services.users.RoleService;
|
|
|
|
import info.bukova.isspst.services.users.RoleService;
|
|
|
@ -307,7 +308,12 @@ public class AppInitListener implements ServletContextListener {
|
|
|
|
|
|
|
|
|
|
|
|
private void checkNumberSeries()
|
|
|
|
private void checkNumberSeries()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Season season = seasonService.getActive();
|
|
|
|
Season season;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
season = seasonService.getActive();
|
|
|
|
|
|
|
|
} catch (SeasonException e) {
|
|
|
|
|
|
|
|
season = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (season == null) {
|
|
|
|
if (season == null) {
|
|
|
|
season = new Season();
|
|
|
|
season = new Season();
|
|
|
|