1
This commit is contained in:
@@ -106,6 +106,11 @@ class VehicleNewController extends BaseController
|
||||
$contentRes['content'] = isset($content['translation']) ? $content['translation']['content']:'';
|
||||
$result['content'][] = $contentRes;
|
||||
}
|
||||
|
||||
if(empty($item['sku'])){
|
||||
$result['sku'] = [];
|
||||
return $result;
|
||||
}
|
||||
foreach ($item['sku'] as &$sku) {
|
||||
foreach ($sku['skuAttributes'] as &$skuAttribute){
|
||||
$attribute = VehicleNewAttributesTranslationModel::where(['attributes_id' => $skuAttribute['attribute']['id'],'locale'=>locale()])->first();
|
||||
|
||||
Reference in New Issue
Block a user