public function getSearchFormElement(Option $option, $value) {
WCF::getTPL()->assign(array(
'option' => $option,
- 'searchOption' => $value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName]),
+ 'searchOption' => $value !== null && ($value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName])),
'selectOptions' => $this->getSelectOptions($option),
'value' => (!is_array($value) ? explode("\n", $value) : $value)
));
*/
public function getSearchFormElement(Option $option, $value) {
$this->templateName = 'radioButtonSearchableOptionType';
- WCF::getTPL()->assign('searchOption', $value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName]));
+ WCF::getTPL()->assign('searchOption', $value !== null && ($value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName])));
return $this->getFormElement($option, $value);
}
'option' => $option,
'inputType' => $this->inputType,
'inputClass' => $this->inputClass,
- 'searchOption' => $value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName]),
+ 'searchOption' => $value !== null && ($value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName])),
'value' => $value
));
return WCF::getTPL()->fetch('textSearchableOptionType');
public function getSearchFormElement(Option $option, $value) {
WCF::getTPL()->assign(array(
'option' => $option,
- 'searchOption' => $value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName]),
+ 'searchOption' => $value !== null && ($value !== $option->defaultValue || isset($_POST['searchOptions'][$option->optionName])),
'value' => $value
));
return WCF::getTPL()->fetch('textareaSearchableOptionType');