Project

General

Profile

Backport(バックポート) #2540

強制退会確認画面においてプロフィール項目がプリセットの場合、項目名が表示されない

Added by Maki Takahashi about 12 years ago. Updated over 10 years ago.

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

100%


Description

Overview (現象)

管理画面のメンバーを強制退会しようとする場合の確認画面において
プロフィール項目がプリセットの場合のみ項目名が表示されない。

Causes (原因)

強制退会確認画面のテンプレート(/apps/pc_backend/modules/member/templates/deleteSuccess.php)において
プロフィール項目名の表示が一律

<th><?php echo $profile->getCaption() ?></th>

となっているため、プリセットの場合は表示されない。

確認バージョン

OpenPNE 3.7.0-dev (master)
OpenPNE 3.6.1 (stable-3.6.x)
OpenPNE 3.4.17 (stable-3.4.x)

Way to fix (修正内容)

以下のようにプリセットとそれ以外で表示を分ける

<?php foreach ($member->getProfiles() as $profile): ?>
<?php $profileObj = $profile->getProfile() ?>
<tr>
<?php if ($profileObj->isPreset()): ?>
<?php $config = $profileObj->getPresetConfig(); ?>
<th><?php echo __($config['Caption']) ?></th>
<?php else: ?>
<th><?php echo $profile->getCaption() ?></th>
<?php endif; ?>
<td><?php echo __($member->getProfile($profile->getName())) ?></td>
</tr>
<?php endforeach ?>


Related issues

Related to OpenPNE 3 - Bug(バグ) #2486: 強制退会確認画面においてプロフィール項目がプリセットの場合、項目名が表示されない Won't fix(対応せず) 2011-10-12

Associated revisions

Revision 8b65d5a2 (diff)
Added by Maki Takahashi over 10 years ago

(fixes #2540, BP from #2486) fixed the confirm of member delete in pc_backend that considers presetting profiles

History

#1 Updated by Maki Takahashi about 12 years ago

  • Target version changed from OpenPNE 3.6.1 to OpenPNE 3.6.x

#2 Updated by Chiharu Nakajima over 10 years ago

  • Target version changed from OpenPNE 3.6.x to OpenPNE 3.6.9

#3 Updated by Yuya Watanabe over 10 years ago

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

#4 Updated by Maki Takahashi over 10 years ago

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

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

#5 Updated by Kousuke Ebihara over 10 years ago

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

#6 Updated by Chiharu Nakajima over 10 years ago

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

動作確認しました。
問題ありません。

Also available in: Atom PDF