Browse Source

Fix #18557: Fix `yii\data\ActiveDataProvider` to handle DB connection configuration of different type than just `yii\db\Connection`

bizley-patch-1
Bizley 4 years ago committed by GitHub
parent
commit
9a7f778194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/data/ActiveDataProvider.php

1
framework/CHANGELOG.md

@ -8,6 +8,7 @@ Yii Framework 2 Change Log
- Bug #17479: Fix `yii\grid\ActionColumn` to render icons when no glyphicons are available (simialbi)
- Bug #18544: Fix `yii\validators\NumberValidator` to disallow values with whitespaces (bizley)
- Bug #18552: Fix bug with `yii\data\SqlDataProvider` not properly handling SQL with `ORDER BY` clause (bizley)
- Bug #18557: Fix `yii\data\ActiveDataProvider` to handle DB connection configuration of different type than just `yii\db\Connection` (bizley)
2.0.41.1 March 04, 2021

2
framework/data/ActiveDataProvider.php

@ -88,7 +88,7 @@ class ActiveDataProvider extends BaseDataProvider
{
parent::init();
if ($this->db !== null) {
$this->db = Instance::ensure($this->db, Connection::className());
$this->db = Instance::ensure($this->db);
}
}

Loading…
Cancel
Save