Commit 33e98dbad7032f75f902237b2d644b4968bc6729

Authored by Administrator
1 parent 19e1ad3c

add variantSku

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
@@ -93,7 +93,8 @@ @@ -93,7 +93,8 @@
93 */ 93 */
94 public function getSliderImages() 94 public function getSliderImages()
95 { 95 {
96 - return $this->hasMany(SliderImage::className(), [ 'slider_id' => 'id' ]); 96 + return $this->hasMany(SliderImage::className(), [ 'slider_id' => 'id' ])
  97 + ->where([ SliderImage::tableName() . '.status' => 1 ]);
97 } 98 }
98 99
99 } 100 }