mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
Merge pull request #3591 from advsm/patch-1
Incomplete obsolete filling in i18n db extractor
This commit is contained in:
@@ -34,6 +34,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #3564: Fixed the bug that primary key columns should not take default values from schema (qiangxue)
|
||||
- Bug #3567: Fixed the bug that smallint was treated as string for PostgreSQL (qiangxue)
|
||||
- Bug #3578: Fixed postgreSQL column type detection, added missing types (MDMunir, cebe)
|
||||
- Bug #3591: Fix incomplete obsolete filling in i18n `MessageController::saveMessagesToDb()` (advsm)
|
||||
- Bug: Fixed inconsistent return of `\yii\console\Application::runAction()` (samdark)
|
||||
- Enh #2264: `CookieCollection::has()` will return false for expired or removed cookies (qiangxue)
|
||||
- Enh #2435: `yii\db\IntegrityException` is now thrown on database integrity errors instead of general `yii\db\Exception` (samdark)
|
||||
|
||||
@@ -173,7 +173,7 @@ class MessageController extends Controller
|
||||
|
||||
if (isset($current[$category])) {
|
||||
$new[$category] = array_diff($msgs, $current[$category]);
|
||||
$obsolete = array_diff($current[$category], $msgs);
|
||||
$obsolete += array_diff($current[$category], $msgs);
|
||||
} else {
|
||||
$new[$category] = $msgs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user