Skip to content

Commit d2faef8

Browse files
committed
fix: remove duplicate after merging
1 parent 9fb16ba commit d2faef8

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

src/Filament/Resources/ProductResource.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -129,31 +129,6 @@ function ($query) {
129129
->preload()
130130
->placeholder(__('eclipse-catalogue::product.placeholders.product_type')),
131131

132-
Select::make('product_type_id')
133-
->label(__('eclipse-catalogue::product.fields.product_type'))
134-
->relationship(
135-
'type',
136-
'name',
137-
function ($query) {
138-
$tenantFK = config('eclipse-catalogue.tenancy.foreign_key');
139-
$currentTenant = \Filament\Facades\Filament::getTenant();
140-
141-
if ($tenantFK && $currentTenant) {
142-
return $query->whereHas('productTypeData', function ($q) use ($tenantFK, $currentTenant) {
143-
$q->where($tenantFK, $currentTenant->id)
144-
->where('is_active', true);
145-
});
146-
}
147-
148-
return $query->whereHas('productTypeData', function ($q) {
149-
$q->where('is_active', true);
150-
});
151-
}
152-
)
153-
->searchable()
154-
->preload()
155-
->placeholder(__('eclipse-catalogue::product.placeholders.product_type')),
156-
157132
TextInput::make('short_description'),
158133

159134
RichEditor::make('description')

src/Models/Product.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class Product extends Model implements HasMedia
3232
'name',
3333
'category_id',
3434
'product_type_id',
35-
'product_type_id',
3635
'short_description',
3736
'description',
3837
'origin_country_id',

0 commit comments

Comments
 (0)