mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
SuiteCRM - Issue in Report module - Order/Sort related (field type) columns issue #4873
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4873
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @trungnguyenhd on GitHub (Oct 18, 2022).
Hi all,
I found an issue in the Report module. It looks incorrect when sorting related fields.

For example:
I want to simply list all Student records (with Student Name, School (related field)) and sort by School. But the result doesn’t sort by School name, it’s sorted by School ID (record UUID) instead.
It works with relationship fields but doesn’t work with related fields. (I mean with relationship fields, it corrects sort by name, but will sort by UUID with related fields).
I debugged and get the report query for this case:
So I think we should add the jion (left jion) here with the school table and sort by school.name instead.
The file path: modules/AOR_Reports/AOR_Report.php, line 1369, ( if ($field->sort_by != ‘’) {)
So please check and update it in the next version (SuiteCRM 7.x)
More info: I'm using SuiteCRM version 7.11.15, and I also check the latest version but the issue above still not fixed.
Thanks
@SuiteBot commented on GitHub (Oct 18, 2022):
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/suitecrm-issue-in-report-module-order-sort-related-field-type-columns-issue/86634/1
@GeeteshMehto commented on GitHub (Oct 19, 2022):
Hello sir, please assign this issue to me as i already worked on this kind of problem in past and has a great experience.
@pgorod commented on GitHub (Oct 19, 2022):
Hi @GeeteshMehto
We don't normally use the assignments here, people just go ahead and create PR's, so feel free to work on this.
@timo-ecm2 commented on GitHub (Oct 20, 2022):
@GeeteshMehto, feel free to enjoy yourself. I am really interested in this one.