Skip to content

Commit

Permalink
Merge pull request #1054 from bcgov/fix/EDX-1824
Browse files Browse the repository at this point in the history
EDX-1824
  • Loading branch information
arcshiftsolutions authored Sep 22, 2023
2 parents fb4378d + 2cdb35f commit cbbe3ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/sdcCollection/StepTwoValidateData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@
item-title="dropdownText"
:label="SDC_VALIDATION_FIELD_MAPPINGS[field].label"
multiple
placeholder="No Program Codes"
:persistent-placeholder="true"
:selectable="() => sdcSchoolCollectionStudentDetailCopy[SDC_VALIDATION_FIELD_MAPPINGS[field].key].length < 8"
@update:model-value="syncWithEnrolledProgramCodeOnUserInput"
@update:focused="onFieldClick(SDC_VALIDATION_FIELD_MAPPINGS[field]?.key, $event, issue?.validationIssueSeverityCode)"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/store/modules/sdcCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const useSdcCollectionStore = defineStore('sdcCollection', {
this.enrolledProgramCodes = enrolledProgramCodes.map(item => {
return {...item, dropdownText: `${item.enrolledProgramCode} - ${item.label}`};
});
this.enrolledProgramCodes.push({'enrolledProgramCode': '', 'dropdownText': 'No Program Code'});
this.enrolledProgramCodesMap = new Map();
enrolledProgramCodes.forEach(enrolledProgramCode => {
this.enrolledProgramCodesMap.set(enrolledProgramCode.enrolledProgramCode, enrolledProgramCode);
Expand Down Expand Up @@ -110,6 +109,7 @@ export const useSdcCollectionStore = defineStore('sdcCollection', {
return {...item, dropdownText: `${item.schoolFundingCode} - ${item.label}`};
});
this.schoolFundingCodesMap = new Map();
this.schoolFundingCodes.push({'schoolFundingCode': '', 'dropdownText': 'No Funding Code'});
schoolFundingCodes.forEach(schoolFundingCode => {
this.schoolFundingCodesMap.set(schoolFundingCode.schoolFundingCode, schoolFundingCode);
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/sdc/sdcValidationFieldMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const SDC_VALIDATION_FIELD_MAPPINGS = Object.freeze({
GENDER_CODE: {label: 'Gender', key: 'gender', type: 'select', options: {items: 'genderCodes', itemValue: 'genderCode'}},
GRADE_CODE: {label: 'Grade Code', key: 'enrolledGradeCode', type: 'select', options: {items: 'enrolledGradeCodes', itemValue: 'enrolledGradeCode'}},
SPECIAL_EDUCATION_CATEGORY_CODE: {label: 'Special Education Category', key: 'specialEducationCategoryCode', type: 'select', options: {items: 'specialEducationCategoryCodes', itemValue: 'specialEducationCategoryCode'}},
SCHOOL_FUNDING_CODE: {label: 'School Funding', key: 'schoolFundingCode', type: 'select', options: {items: 'schoolFundingCodes', itemValue: 'schoolFundingCode'}},
SCHOOL_FUNDING_CODE: {label: 'Funding Code', key: 'schoolFundingCode', type: 'select', options: {items: 'schoolFundingCodes', itemValue: 'schoolFundingCode'}},
NATIVE_ANCESTRY_IND: {label: 'Native Ancestry', key: 'nativeAncestryInd', type: 'input', options: {}},
HOME_LANGUAGE_SPOKEN_CODE: {label: 'Home Language Spoken Code', key: 'homeLanguageSpokenCode', type: 'select', options: {items: 'homeLanguageSpokenCodes', itemValue: 'homeLanguageSpokenCode'}},
OTHER_COURSES: {label: 'Other Courses', key: 'otherCourses', type: 'input', options: {}},
Expand Down

0 comments on commit cbbe3ef

Please sign in to comment.