fixed document contact selected get contact information..
This commit is contained in:
parent
2a6a0a3c2d
commit
1be1413691
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue