This commit is contained in:
Prashant Singh 2019-08-13 23:31:14 +05:30
parent 2a36c6bd0e
commit dd9ff1629d
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,5 @@ class EventServiceProvider extends ServiceProvider
Event::listen('sales.shipment.save.after', 'Webkul\Admin\Listeners\Order@sendNewShipmentMail');
Event::listen('checkout.order.save.after', 'Webkul\Admin\Listeners\Order@updateProductInventory');
Event::listen('products.datagrid.sync', 'Webkul\Admin\Listeners\Product@sync');
}
}

View File

@ -224,7 +224,7 @@ class AttributeRepository extends Repository
if ($attribute->options()->exists()) {
array_push($trimmed, [
'id' => $attribute->id,
'name' => $attribute->name,
'name' => $attribute->admin_name,
'type' => $attribute->type,
'code' => $attribute->code,
'has_options' => true,
@ -233,7 +233,7 @@ class AttributeRepository extends Repository
} else {
array_push($trimmed, [
'id' => $attribute->id,
'name' => $attribute->name,
'name' => $attribute->admin_name,
'type' => $attribute->type,
'code' => $attribute->code,
'has_options' => false,