Commit f332ca7c authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 59e69ab4
......@@ -46,7 +46,7 @@ class AnalyticsSchoolCourse extends \common\components\ActiveRecordModel
[['name','status'], 'required'],
[['status'], 'integer'],
[['description', 'image'], 'string'],
[['uploadedImage'], 'file', 'extensions' => ['jpg', 'jpeg', 'png']],
[['uploadedImage'], 'file', 'extensions' => ['jpg', 'jpeg', 'png'],'checkExtensionByMimeType'=>false],
[['name'], 'string', 'max' => 255],
];
}
......
......@@ -56,7 +56,8 @@ class CoursesSearch extends AnalyticsSchoolCourse {
'id' => $this->id
]);
$query->andFilterWhere(['like', 'description', $this->description])
$query
->andFilterWhere(['like', 'description', $this->description])
->andFilterWhere(['like', 'name', $this->name])
->andFilterWhere(['like', 'image', $this->image]);
$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