プロジェクト

全般

プロフィール

Bug(バグ) #4227

kaoru n6年以上前に更新

h3. Overview (現象)

プロフィール項目に複数選択(チェックボックス)の項目がありいずれかが選択されている場合、単一選択(プルダウン)、単一選択(ラジオボタン)の選択値が出力されない

h3. Causes (原因)

https://github.com/tejimaya/opCsvExportPlugin/blob/master/lib/model/opMemberCsvList.class.php#L347-L368
<pre><code class="php">
if (isset($memberProfileList[$memberId]))
{
$profileDatas = $memberProfileList[$memberId];
$optionValue = array();
foreach ($profileDatas as $profileData)
{
$childProfileId = $profileData['p_profile_id'];
if ($childProfileId == $profileRootId)
{
$optionId = $profileData['p_profile_option_id'];
$optionValue[] = $profileOptionTranslationList[$optionId];
}
}
if (count($optionValue) > 0)
{
$profiledatas['p_'.$profileRootData['p_profile_id']] = implode(',', $optionValue);
}
else
{
$profiledatas['p_'.$profileRootData['p_profile_id']] = $profileRootData['p_value'];
}
}
</code></pre>

member_profile.level <> 0 のレコードがあった場合に、member_profile.level <> 0 のレコードのみ翻訳して出力している。



h3. Way to fix (修正内容)

戻る