Fixed default account issue..

This commit is contained in:
Cüneyt Şentürk
2022-06-09 15:54:03 +03:00
parent 5faa63e3d5
commit cec31b4f43
6 changed files with 10 additions and 32 deletions

View File

@ -52,7 +52,7 @@ class Contact extends Form
$this->contacts = Model::customer()->enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
if (!empty($model) && $model->customer && ! $this->contacts->has($model->contact_id)) {
if (! empty($model) && $model->customer && ! $this->contacts->has($model->contact_id)) {
$this->contacts->put($model->customer->id, $model->customer->name);
}
}
@ -69,7 +69,7 @@ class Contact extends Form
$this->contacts = Model::vendor()->enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
if (!empty($model) && $model->vendor && ! $this->contacts->has($model->contact_id)) {
if (! empty($model) && $model->vendor && ! $this->contacts->has($model->contact_id)) {
$this->contacts->put($model->vendor->id, $model->vendor->name);
}
}