Skip to content
Snippets Groups Projects
Verified Commit 7ec8dba0 authored by Damien's avatar Damien
Browse files

FEAT #142 Service sign for Visa Autocomplete

parent 9263140c
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,8 @@ class AutoCompleteController ...@@ -61,7 +61,8 @@ class AutoCompleteController
$data = []; $data = [];
foreach ($users as $key => $value) { foreach ($users as $key => $value) {
if (ServiceModel::hasService(['id' => 'visa_documents', 'userId' => $value['user_id'], 'location' => 'visa', 'type' => 'use'])) { if (ServiceModel::hasService(['id' => 'visa_documents', 'userId' => $value['user_id'], 'location' => 'visa', 'type' => 'use'])
|| ServiceModel::hasService(['id' => 'sign_document', 'userId' => $value['user_id'], 'location' => 'visa', 'type' => 'use'])) {
$primaryEntity = UserModel::getPrimaryEntityByUserId(['userId' => $value['user_id']]); $primaryEntity = UserModel::getPrimaryEntityByUserId(['userId' => $value['user_id']]);
$data[] = [ $data[] = [
'type' => 'user', 'type' => 'user',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment