Bug(バグ) #2695

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

Added by Yuma Sakata 5 months ago. Updated 4 months ago.

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

100%

Category:-
Target version:OpenPNE 3.4.19
3.6 で発生するか:No (いいえ)

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);
     }

profile_edit.jpg (30.8 kB) Yuma Sakata, 2011-12-16 18:23

Associated revisions

Revision d4d8011e
Added by Yuya Watanabe 5 months ago

(fixes #2695) fixed typo

History

Updated by Yuya Watanabe 5 months ago

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

Updated by Yuya Watanabe 5 months 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);
     }

Updated by Yuya Watanabe 5 months ago

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

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

Updated by Yuya Watanabe 5 months ago

  • Description updated (diff)

Updated by Kousuke Ebihara 4 months ago

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

Updated by Yuma Sakata 4 months ago

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

テストOKです。

Also available in: Atom PDF