Skip to content

Commit fb5ca30

Browse files
Small fix for pagination
1 parent 6adc57a commit fb5ca30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/components/assessments/studentFilters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function createMoreFiltersSearchCriteria(searchFilter = []) {
1212

1313
//Default Filter Begin
1414
if (key === 'schoolYear' && pValue) {
15-
searchCriteriaList.push({ key: 'assessmentEntity.sessionEntity.schoolYear', value: pValue[0].replace('-', '/'), operation: FILTER_OPERATION.EQUAL, valueType: VALUE_TYPE.STRING, condition: CONDITION.AND });
15+
searchCriteriaList.push({ key: 'assessmentEntity.assessmentSessionEntity.schoolYear', value: pValue[0].replace('-', '/'), operation: FILTER_OPERATION.EQUAL, valueType: VALUE_TYPE.STRING, condition: CONDITION.AND });
1616
}
1717
//Default Filter End
1818

@@ -51,7 +51,7 @@ function createMoreFiltersSearchCriteria(searchFilter = []) {
5151
}
5252

5353
if (key === 'session' && pValue) {
54-
searchCriteriaList.push({ key: 'assessmentEntity.sessionEntity.sessionID', value: pValue.toString(), operation: FILTER_OPERATION.IN, valueType: VALUE_TYPE.UUID, condition: CONDITION.AND });
54+
searchCriteriaList.push({ key: 'assessmentEntity.assessmentSessionEntity.sessionID', value: pValue.toString(), operation: FILTER_OPERATION.IN, valueType: VALUE_TYPE.UUID, condition: CONDITION.AND });
5555
}
5656

5757
if (key === 'assessmentTypeCode' && pValue) {

0 commit comments

Comments
 (0)