From f981b4b2cbb6e25f8dc75763326a07d1fd30525c Mon Sep 17 00:00:00 2001 From: Anastasia Date: Mon, 7 May 2018 18:14:27 +0300 Subject: [PATCH] - slide bug fix --- common/models/slider/Slide.php | 2 +- frontend/views/site/index.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/models/slider/Slide.php b/common/models/slider/Slide.php index 36343cd..f25b8c3 100644 --- a/common/models/slider/Slide.php +++ b/common/models/slider/Slide.php @@ -126,6 +126,6 @@ */ public function getBackground() { - return $this->hasOne(Image::className(), [ 'id' => 'image_id' ]); + return $this->hasOne(Image::className(), [ 'id' => 'background_id' ]); } } diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index f160ec7..3b490b4 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -24,7 +24,11 @@ _________________________________________________________ -->