View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005856 | OXID eShop (all versions) | 2.4. Administer products | public | 2014-08-21 02:55 | 2023-12-06 14:19 |
Reporter | stephen | Assigned To | |||
Priority | normal | Severity | tweak | Reproducibility | random |
Status | confirmed | Resolution | open | ||
Platform | All | OS | All | OS Version | All |
Product Version | 4.8.7 / 5.1.7 | ||||
Summary | 0005856: Incorrect sort order of reviews | ||||
Description | Article reviews in eShop backend are not ordered by creation time. See screenshot. The problem will only occur, if the database table oxreviews is defined as InnoDB. Not for MyIsam. The problem comes from the following file: application/controllers/admin/article_review.php There is a method named: _getReviewList In that method there isn't an "order by" statement defined. Proposed solution: Find: $sSelect .= "and oxreviews.oxtext != '' "; Add after: $sSelect .= "order by oxreviews.oxcreate"; | ||||
Steps To Reproduce | - Use a database in which the storage engine of the table oxreviews is defined as InnoDB. - Write some reviews for a certain article - Enter eShop backend - Select the article - Click on the tab "Reviews" | ||||
Tags | Reviews, Specialized Management Apps | ||||
Attached Files | |||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
Please note: The first screenshot shows the sort order achieved with the proposed solution. The second screenshot shows the sort order as created in standard. |
|
Reminder sent to: stephen Hi, As we saw, you already submitted a complete solution for this issue. If you feel fancy, you'd also have the possibility to contribute your changes directly to our GitHub repository on https://github.com/OXID-eSales/oxideshop_ce/. Please leave a note there with the bug number you fixed so we can close this issue in the bug tracker." Best regards Jurate |