fixed contact and category set edit form model data..
This commit is contained in:
parent
60b4fcd212
commit
114af3d04d
@ -29,7 +29,7 @@ class Category extends Form
|
||||
$this->path = route('modals.categories.create', ['type' => $this->type]);
|
||||
$this->remoteAction = route('categories.index', ['search' => 'type:' . $this->type . ' enabled:1']);
|
||||
|
||||
$this->categories = Model::type($this->type)->enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
|
||||
$this->categories = Model::type($this->type)->enabled()->orderBy('name')->take(setting('default.select_limit'))->pluck('name', 'id');
|
||||
|
||||
$model = $this->getParentData('model');
|
||||
|
||||
|
@ -35,7 +35,7 @@ class Contact extends Form
|
||||
|
||||
$this->label = trans_choice('general.' . Str::plural($this->type), 1);
|
||||
|
||||
$this->contacts = Model::type($this->type)->enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
|
||||
$this->contacts = Model::type($this->type)->enabled()->orderBy('name')->take(setting('default.select_limit'))->pluck('name', 'id');
|
||||
|
||||
$model = $this->getParentData('model');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user