Commit 4b7191be by Alexander Makarov

Merge pull request #3591 from advsm/patch-1

Incomplete obsolete filling in i18n db extractor
parents c6201fb5 4bdaa09d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment