회원정보에서 비공개인 항목은 검색 옵션에서 제거

This commit is contained in:
whantae ji 2015-01-08 23:22:37 +09:00
parent 0df478c14f
commit b91e059a47

View file

@ -169,6 +169,16 @@ class boardView extends board
if($val->search == 'Y') $search_option['extra_vars'.$val->idx] = $val->name;
}
}
// remove a search option that is not public in member config
$memberConfig = getModel('module')->getModuleConfig('member');
foreach($memberConfig->signupForm as $signupFormElement)
{
if(in_array($signupFormElement->title, $search_option))
{
if($signupFormElement->isPublic == 'N')
unset($search_option[$signupFormElement->name]);
}
}
Context::set('search_option', $search_option);
$oDocumentModel = getModel('document');