Open trungnguyenhd opened 1 year ago
This issue has been mentioned on SuiteCRM. There might be relevant details there:
Hello sir, please assign this issue to me as i already worked on this kind of problem in past and has a great experience.
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.
@GeeteshMehto, feel free to enjoy yourself. I am really interested in this one.
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