Fix issue clients listing being broken with MySQL server due to not specifiying all non aggregate columns be in the GROUP BY Field, this was not an issue with mariaDB

This commit is contained in:
johnnyq 2023-02-28 22:15:09 -05:00
parent e14fe2474c
commit 94c020f689
2 changed files with 1 additions and 5 deletions

View File

@ -21,7 +21,7 @@ $sql = mysqli_query(
AND client_archived_at IS NULL
AND DATE(client_created_at) BETWEEN '$dtf' AND '$dtt'
AND clients.company_id = $session_company_id
GROUP BY client_id
GROUP BY clients.client_id, contacts.contact_id, locations.location_id, client_tags.client_tag_tag_id, tags.tag_id
ORDER BY $sb $o LIMIT $record_from, $record_to
");

View File

@ -1,5 +1,3 @@
var checkboxes = document.querySelectorAll('form input[type="checkbox"]');
var selectedCount = document.getElementById("selectedCount");
@ -25,9 +23,7 @@ function updateSelectedCount() {
}
function checkAll(source) {
for (var i = 0; i < checkboxes.length; i++) {
checkboxes[i].checked = source.checked;
}
}