diff --git a/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java b/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java index 26ff11fd27..d1af459f1c 100644 --- a/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java +++ b/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java @@ -709,6 +709,7 @@ else if (owningDept.getDistributionPrefPriority().intValue()==clazz.getManagingD dObj.setDistributionPref(dp); dp.addToDistributionObjects(dObj); hibSession.persist(dObj); + dObj.getPrefGroup().addToDistributionObjects(dObj); } sessionContext.checkPermission(dp, Right.DistributionPreferenceEdit);