HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-01-28 f8fd8709d53558f56b9d2e07ad179c7808f2dce3
set correct basepac on pac create
2 files modified
3 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/Pac.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/Pac.java
@@ -103,7 +103,7 @@
        initPacComponents(basePac);
    }
    private void initPacComponents(BasePac basePac) {
    protected void initPacComponents(BasePac basePac) {
        pacComponents = new HashSet<PacComponent>();
        Date today = new Date();
        for (Component comp : basePac.getComponents()) {
hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
@@ -45,6 +45,7 @@
        qBasepac.setParameter("valid", Boolean.TRUE);
        basepac = (BasePac) qBasepac.getSingleResult();
        pac.setBasepac(basepac);
        pac.initPacComponents(basepac);
        INetAddress curINetAddr = pac.getCurINetAddr();
        if (curINetAddr == null || curINetAddr.getInetAddr() == null || curINetAddr.getInetAddr().length() == 0) {
            throw new HSAdminException("curinetaddr required");