fixed document contact selected get contact information..

This commit is contained in:
Cüneyt Şentürk 2020-12-29 14:21:49 +03:00
parent 2a6a0a3c2d
commit 1be1413691

View File

@ -315,9 +315,9 @@ abstract class DocumentForm extends Component
$contact_type = $this->getContactType($type, null);
if ($contact_type) {
$contacts = Contact::$contact_type()->enabled()->orderBy('name')->take(setting('default.select_limit'))->pluck('name', 'id');
$contacts = Contact::$contact_type()->enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
} else {
$contacts = Contact::enabled()->orderBy('name')->take(setting('default.select_limit'))->pluck('name', 'id');
$contacts = Contact::enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
}
return $contacts;