Fixes #16945: Fixed RBAC DbManager ruleName fetching on the case of PDO::ATTR_ORACLE_NULLS => PDO::NULL_TO_STRING

This commit is contained in:
Razon Yang
2018-12-31 19:43:07 +08:00
committed by Alexander Makarov
parent b128ec85f4
commit 2b79a0c5ba
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.16 under development
------------------------
- Bug #16945: Fixed RBAC DbManager ruleName fetching on the case of PDO::ATTR_ORACLE_NULLS => PDO::NULL_TO_STRING (razonyang)
- Bug #16081: Fixed composite IN using just one column (rugabarbo)
- Bug #16926: Fix shell autocompletion (GHopperMSK)
- Bug #15850: check basePath is writable on publish in AssetManager (Groonya)

View File

@ -451,7 +451,7 @@ class DbManager extends BaseManager
'name' => $row['name'],
'type' => $row['type'],
'description' => $row['description'],
'ruleName' => $row['rule_name'],
'ruleName' => $row['rule_name'] ?: null,
'data' => $data,
'createdAt' => $row['created_at'],
'updatedAt' => $row['updated_at'],