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