From a5e3be6892d263772420e4e0056b9cd36007646b Mon Sep 17 00:00:00 2001 From: tomas-muller Date: Mon, 9 Oct 2023 14:46:31 +0200 Subject: [PATCH] Edit Distribution Preference - fixed the itype auto selection when there is only one course in the selected subject area - corrected a bug introduced in commit 66e40be --- .../org/unitime/timetable/action/DistributionPrefsAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java b/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java index 03cf4aa6b3..be8bdc72d2 100644 --- a/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java +++ b/JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java @@ -504,7 +504,7 @@ private void setLookupLists(List subjectAreaList) { } // Only one record - select it to save time and one more click - if(subparts.size()==1) { + if(subpartList.size()==1) { ComboBoxLookup cbl = (ComboBoxLookup) subpartList.elementAt(0); form.setItype(index, cbl.getValue()); subpart = form.getItype(index);