mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
commit
506acbee0d
1 changed files with 10 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue