diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index 9379007..7241c58 100755 --- a/frontend/models/ProductFrontendSearch.php +++ b/frontend/models/ProductFrontendSearch.php @@ -52,7 +52,7 @@ * * @param array $params * - * @return ActiveDataProvider + * @return ArrayDataProvider */ public function search($category = null, $params = [], $in_stock = true) { @@ -143,7 +143,7 @@ ->innerJoin( 'event', 'event.event_id=events_to_products.event_id' - )->where(['event.is_event' => true]), + )->where(['event.sale' => true]), ], ] ); -- libgit2 0.21.4