|
...
|
...
|
@@ -838,11 +838,12 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$values['category'][] = $item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$productType = $this->getCategoryList((new ProductType()),1,['id','name']);
|
|
|
|
if(!empty($productType)){
|
|
|
|
foreach ($productCategory as $item){
|
|
|
|
$item['id'] = 'product_type_'.$item['id'];
|
|
|
|
$values['category'][] = $item;
|
|
|
|
$productTypeModel = new ProductType();
|
|
|
|
$productTypeList = $productTypeModel->list(['project_id'=>$this->user['project_id']],'id',['id','name']);
|
|
|
|
if(!empty($productTypeList)){
|
|
|
|
foreach ($productTypeList as $items){
|
|
|
|
$items['id'] = 'product_type_'.$items['id'];
|
|
|
|
$values['category'][] = $items;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
...
|
...
|
|