Commit f332ca7c authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 59e69ab4
...@@ -46,7 +46,7 @@ class AnalyticsSchoolCourse extends \common\components\ActiveRecordModel ...@@ -46,7 +46,7 @@ class AnalyticsSchoolCourse extends \common\components\ActiveRecordModel
[['name','status'], 'required'], [['name','status'], 'required'],
[['status'], 'integer'], [['status'], 'integer'],
[['description', 'image'], 'string'], [['description', 'image'], 'string'],
[['uploadedImage'], 'file', 'extensions' => ['jpg', 'jpeg', 'png']], [['uploadedImage'], 'file', 'extensions' => ['jpg', 'jpeg', 'png'],'checkExtensionByMimeType'=>false],
[['name'], 'string', 'max' => 255], [['name'], 'string', 'max' => 255],
]; ];
} }
......
...@@ -56,7 +56,8 @@ class CoursesSearch extends AnalyticsSchoolCourse { ...@@ -56,7 +56,8 @@ class CoursesSearch extends AnalyticsSchoolCourse {
'id' => $this->id 'id' => $this->id
]); ]);
$query->andFilterWhere(['like', 'description', $this->description]) $query
->andFilterWhere(['like', 'description', $this->description])
->andFilterWhere(['like', 'name', $this->name]) ->andFilterWhere(['like', 'name', $this->name])
->andFilterWhere(['like', 'image', $this->image]); ->andFilterWhere(['like', 'image', $this->image]);
$query->orderBy(['id' => SORT_DESC]); $query->orderBy(['id' => SORT_DESC]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment