1 to many fix in update when reviewing a service
This commit is contained in:
parent
15a71c9f5b
commit
c4809a311d
@ -49,7 +49,8 @@
|
||||
<!-- PRODUCT -->
|
||||
<x-leenooks::form.select name="product_id" icon="fa-list" label="Product" :helper="$o->product->category_name"
|
||||
:value="$o->product_id"
|
||||
:options="Product::get()
|
||||
:options="Product::with(['type.supplied','translate'])
|
||||
->get()
|
||||
->filter(fn($item)=>($item->category === $o->product->category))
|
||||
->sortBy('name')
|
||||
->map(fn($item)=>[
|
||||
|
Loading…
x
Reference in New Issue
Block a user