diff --git a/clients.php b/clients.php index 079269b5..589cf52a 100644 --- a/clients.php +++ b/clients.php @@ -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 "); diff --git a/js/multi_actions.js b/js/multi_actions.js index d81905e0..51c73de3 100644 --- a/js/multi_actions.js +++ b/js/multi_actions.js @@ -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; - } }