Elasticsearch results not displayed when on paginated page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned | ||
17.10 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Problem: When doing a subsequent search in elasticsearch after paginating to non first page of initial results. If the new results are greater than 0 but less than 10 no results are displayed but the tab indicates results exist.
To test:
1) On a site with elasticsearch enabled and indexed - first do full search (by leaving search field blank) and have more than 10 results in 'Text' tab
2) Go to page 2 of the results
3) Now search again using search field above tabs (NOT the one at top of page) for something that appears in 'Text' tab only a few times, eg country for user
4) Should display count in 'Text' tab but not the actual result.
This is due to the ajax call not setting 'offset' back to 0 for the pagination
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/8319