From 2a335eca108d2cc8511d4af079dfa2fb71f5a9d0 Mon Sep 17 00:00:00 2001 From: Muhammad Farjad <86410882+BeastMasterGrinder@users.noreply.github.com> Date: Tue, 5 Aug 2025 17:40:45 +0500 Subject: [PATCH] Get only 1 contact as we do not want to get the millions of contacts More on this in issue #10701 --- public/legacy/modules/Emails/Email.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/legacy/modules/Emails/Email.php b/public/legacy/modules/Emails/Email.php index 3aa57a94e2..6e48f64696 100755 --- a/public/legacy/modules/Emails/Email.php +++ b/public/legacy/modules/Emails/Email.php @@ -3449,6 +3449,7 @@ public function fill_in_additional_detail_fields() $query .= " AND contacts.id= '" . $_REQUEST['record'] . "' "; } } + $query .= " LIMIT 1"; $result = $this->db->query($query, true, " Error filling in additional detail fields: "); // Get the id and the name.