log4j2 #1
|
@ -382,5 +382,14 @@ public class MenuService {
|
||||||
menuDAO.save(menu);
|
menuDAO.save(menu);
|
||||||
log.debug("menu saved!");
|
log.debug("menu saved!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<MenuItem> menuItems = menuItemDAO.findByPortalPid(old_pid);
|
||||||
|
if(menuItems != null) {
|
||||||
|
menuItems.forEach(menuItem -> {
|
||||||
|
menuItem.setPortalPid(new_pid);
|
||||||
|
menuItemDAO.save(menuItem);
|
||||||
|
log.debug("menuItem saved!");
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue