Project

General

Profile

Actions

Bug(バグ) #2695

closed

プロフィール項目の公開範囲が翻訳されていない

Added by Yuma Sakata about 13 years ago. Updated over 7 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Assignee:
Target version:
Start date:
2011-12-16
Due date:
% Done:

100%

Estimated time:
3.6 で発生するか:
No (いいえ)
3.8 で発生するか:
Unknown (未調査)

Description

Overview (現象)

プロフィール項目の公開範囲が翻訳されていない

Environment (再現バージョン)

OpenPNE3.4.18

Way to repro (再現手順)

1. 管理画面プロフィール項目設定ページ(/pc_backend.php/profile/list)にアクセスする
2. プロフィール項目を編集して、公開設定変更の可否を「メンバー選択」に設定する
3. プロフィール編集ページ(/member/editProfile)にアクセスする
4. 手順2 で設定したプロフィール項目の公開範囲を確認する
5. プロフィール項目の公開範囲が翻訳されていない

Way to fix (修正内容)

プロフィール項目の公開範囲が日本語で表示されるように修正お願いします。

備考

3.6系では発生しませんでした。

原因

#2546 「公開設定デフォルト値が my_friend と表示されている」で下記コミットが行われているが,この修正にtypoが存在していたため.

97c94cb31168ce5e1867b57436f31dbe29776ea5

lib/model/doctrine/ProfileTable.class.php 25行目

 23   public function getPublicFlags($isI18n = true)
 24   {
 25     if ($isI18m)
 26     {
 27       $publicFlags = array_map(array(sfContext::getInstance()->getI18N(), '__'), $this->publicFlags);
 28     }

修正内容

diff --git a/lib/model/doctrine/ProfileTable.class.php b/lib/model/doctrine/ProfileTable.class.php
index 1dcb816..e6a6f56 100644
--- a/lib/model/doctrine/ProfileTable.class.php
+++ b/lib/model/doctrine/ProfileTable.class.php
@@ -22,7 +22,7 @@ class ProfileTable extends Doctrine_Table

   public function getPublicFlags($isI18n = true)
   {
-    if ($isI18m)
+    if ($isI18n)
     {
       $publicFlags = array_map(array(sfContext::getInstance()->getI18N(), '__'), $this->publicFlags);
     }

Files

profile_edit.jpg (30.8 KB) profile_edit.jpg Yuma Sakata, 2011-12-16 18:23
Actions #1

Updated by Yuya Watanabe about 13 years ago

  • Status changed from New(新規) to Accepted(着手)
  • Assignee set to Yuya Watanabe
Actions #2

Updated by Yuya Watanabe about 13 years ago

原因

#2546 「公開設定デフォルト値が my_friend と表示されている」で下記コミットが行われているが,この修正にtypoが存在していたため.

97c94cb31168ce5e1867b57436f31dbe29776ea5

lib/model/doctrine/ProfileTable.class.php 25行目

 23   public function getPublicFlags($isI18n = true)
 24   {
 25     if ($isI18m)
 26     {
 27       $publicFlags = array_map(array(sfContext::getInstance()->getI18N(), '__'), $this->publicFlags);
 28     }

修正案

diff --git a/lib/model/doctrine/ProfileTable.class.php b/lib/model/doctrine/ProfileTable.class.php
index 1dcb816..e6a6f56 100644
--- a/lib/model/doctrine/ProfileTable.class.php
+++ b/lib/model/doctrine/ProfileTable.class.php
@@ -22,7 +22,7 @@ class ProfileTable extends Doctrine_Table

   public function getPublicFlags($isI18n = true)
   {
-    if ($isI18m)
+    if ($isI18n)
     {
       $publicFlags = array_map(array(sfContext::getInstance()->getI18N(), '__'), $this->publicFlags);
     }
Actions #3

Updated by Yuya Watanabe about 13 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴 d4d8011e1ca1bb94ee568032b4fd3b1935095dd4 で適用されました。

Actions #4

Updated by Yuya Watanabe about 13 years ago

  • Description updated (diff)
Actions #5

Updated by Kousuke Ebihara about 13 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
  • % Done changed from 50 to 70
Actions #6

Updated by Yuma Sakata about 13 years ago

  • Status changed from Pending Testing(テスト待ち) to Fixed(完了)
  • % Done changed from 70 to 100

テストOKです。

Actions #7

Updated by Chiharu Nakajima over 7 years ago

3.6発生せず
3.8発生せず

Actions

Also available in: Atom PDF