From 823d29dac1c47febe2b7fc8d9626fec60569c0a9 Mon Sep 17 00:00:00 2001 From: tomas-muller Date: Fri, 15 Nov 2024 15:02:54 +0100 Subject: [PATCH] Add/Edit Distribution Preference - when a distribution preference is created or updated, make sure it is immediately visible on the related subparts and classes - this fixes a problem introduced in commit 0885742 which made the PreferenceGroup.distributionObjects no longer updated --- .../org/unitime/timetable/action/DistributionPrefsAction.java | 1 + 1 file changed, 1 insertion(+) 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);