Skip to content

Commit

Permalink
Fix Mysql errror if sql_mode=only_full_group
Browse files Browse the repository at this point in the history
 - Fix the following error:  Expression #9 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'xerte_uu_nl.fd3.folder_name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
  • Loading branch information
torinfo committed Aug 9, 2021
1 parent 8257f1d commit 402adc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_code/php/display_library.php
Expand Up @@ -860,7 +860,7 @@ function get_workspace_templates($folder_id, $tree_id, $sort_type, $copy_only=fa
}

if ($type == "") {
$query .= " group by td.template_id, tr.role ";
$query .= " group by td.template_id, tr.role, tr.folder,fd3.folder_name ";
}

if ($sort_type == "alpha_down") {
Expand Down

0 comments on commit 402adc4

Please sign in to comment.