diff --git a/src/app/contact/controllers/ContactGroupController.php b/src/app/contact/controllers/ContactGroupController.php index 124057f1815dd6161fe0a7d8b2639753adea0b93..c7357075352d60d3e29f5c8fe2911f736d1691f7 100755 --- a/src/app/contact/controllers/ContactGroupController.php +++ b/src/app/contact/controllers/ContactGroupController.php @@ -14,6 +14,7 @@ namespace Contact\controllers; +use Contact\controllers\ContactController; use Contact\models\ContactGroupModel; use Contact\models\ContactModel; use Group\controllers\PrivilegeController; @@ -21,7 +22,6 @@ use History\controllers\HistoryController; use Respect\Validation\Validator; use Slim\Http\Request; use Slim\Http\Response; -use SrcCore\controllers\AutoCompleteController; use User\models\UserModel; class ContactGroupController @@ -270,7 +270,7 @@ class ContactGroupController ]); if (!empty($contact[0])) { - $contact = AutoCompleteController::getFormattedContactV2(['contact' => $contact[0], 'position' => $position])['contact']; + $contact = ContactController::getFormattedContactWithAddress(['contact' => $contact[0], 'position' => $position])['contact']; $contact['position'] = !empty($position) ? $position : 0; $contacts[] = $contact; ++$position; diff --git a/src/core/controllers/AutoCompleteController.php b/src/core/controllers/AutoCompleteController.php index ea7f29889cad8c670df655deff47f806b884fbd6..166157cb6af7e05712ace8ac75f976f9489b29ee 100755 --- a/src/core/controllers/AutoCompleteController.php +++ b/src/core/controllers/AutoCompleteController.php @@ -496,7 +496,7 @@ class AutoCompleteController $data = []; foreach ($contacts as $contact) { - $data[] = AutoCompleteController::getFormattedContactV2(['contact' => $contact])['contact']; + $data[] = ContactController::getFormattedContactWithAddress(['contact' => $contact])['contact']; } return $response->withJson($data);