From c5e93efde391ab60a65e7ed2e9e809b05fecac8f Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Wed, 22 May 2013 22:43:19 +0400 Subject: [PATCH] Bugfix --- framework/yii/bootstrap/Widget.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/yii/bootstrap/Widget.php b/framework/yii/bootstrap/Widget.php index fe41d419fa..a2e6d77e2f 100644 --- a/framework/yii/bootstrap/Widget.php +++ b/framework/yii/bootstrap/Widget.php @@ -53,8 +53,8 @@ class Widget extends \yii\base\Widget public function init() { parent::init(); - if (!isset($this->clientOptions['id'])) { - $this->clientOptions['id'] = $this->getId(); + if (!isset($this->options['id'])) { + $this->options['id'] = $this->getId(); } } @@ -64,7 +64,7 @@ class Widget extends \yii\base\Widget */ protected function registerPlugin($name) { - $id = $this->clientOptions['id']; + $id = $this->options['id']; $view = $this->getView(); $view->registerAssetBundle(static::$responsive ? 'yii/bootstrap/responsive' : 'yii/bootstrap'); $view->registerAssetBundle("yii/bootstrap/$name");