Merge pull request #1160 from zfanta/hide_search_options

검색 옵션 수정
This commit is contained in:
bnu 2015-03-19 14:21:43 +09:00
commit 506acbee0d

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