Merge pull request #3591 from advsm/patch-1

Incomplete obsolete filling in i18n db extractor
This commit is contained in:
Alexander Makarov
2014-05-26 15:09:21 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -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 #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 #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 #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) - Bug: Fixed inconsistent return of `\yii\console\Application::runAction()` (samdark)
- Enh #2264: `CookieCollection::has()` will return false for expired or removed cookies (qiangxue) - 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) - Enh #2435: `yii\db\IntegrityException` is now thrown on database integrity errors instead of general `yii\db\Exception` (samdark)

View File

@@ -173,7 +173,7 @@ class MessageController extends Controller
if (isset($current[$category])) { if (isset($current[$category])) {
$new[$category] = array_diff($msgs, $current[$category]); $new[$category] = array_diff($msgs, $current[$category]);
$obsolete = array_diff($current[$category], $msgs); $obsolete += array_diff($current[$category], $msgs);
} else { } else {
$new[$category] = $msgs; $new[$category] = $msgs;
} }