diff --git a/modules/smtp/ajax/select.php b/modules/smtp/ajax/select.php index 39c51633d..2a7022484 100644 --- a/modules/smtp/ajax/select.php +++ b/modules/smtp/ajax/select.php @@ -9,6 +9,9 @@ switch ($resource) { foreach ($elements as $element) { $filter[] = 'id = '.prepare($element); } + if (empty($filter)) { + $where[] = 'deleted_at IS NULL'; + } if (!empty($search)) { $search_fields[] = 'name LIKE '.prepare('%'.$search.'%'); }