فهرست منبع

feat: EK-2086: Member Portal : Dashboard Article and Ad only show self country.

kevin 4 ماه پیش
والد
کامیت
e05b22e13c
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      backendApi/modules/v1/models/lists/article/IndexList.php

+ 4 - 2
backendApi/modules/v1/models/lists/article/IndexList.php

@@ -36,7 +36,9 @@ class IndexList extends \common\libs\dataList\DataList implements DataListInterf
         if(!$this->columns){
             $this->columns = [
                 'ID' => null,
-                'TITLE' => null,
+                'TITLE' => [
+                    'header' => Yii::t('ctx', 'title'),
+                ],
                 'CID' => [
                     'header' => Yii::t('ctx', 'category'),
                     'headerOther' => ['width' => '150'],
@@ -74,7 +76,7 @@ class IndexList extends \common\libs\dataList\DataList implements DataListInterf
         if (!$this->filterTypes) {
             $this->filterTypes = [
                 'TITLE'=> ['name'=> Yii::t('ctx', 'title')],
-                'COUNTRY'=> [
+                'COUNTRY_ID'=> [
                     'name'=> \Yii::t('ctx', 'country'),
                     'other'=> 'select',
                     'selectData'=> self::getCountry()