Pass along enhancement flag

This commit is contained in:
Nathan Gray 2012-12-31 20:22:05 +00:00
parent 328bb04491
commit d496ba3cd5

View File

@ -150,7 +150,7 @@ class customfields_widget
} }
} }
// check if name refers to a single custom field --> show only that // check if name refers to a single custom field --> show only that
if (($pos=strpos($cell['name'],$this->prefix)) !== false && // allow the prefixed name to be an array index too if (($pos=@strpos($cell['name'],$this->prefix)) !== false && // allow the prefixed name to be an array index too
preg_match("/$this->prefix([^\]]+)/",$cell['name'],$matches) && isset($fields[$name=$matches[1]])) preg_match("/$this->prefix([^\]]+)/",$cell['name'],$matches) && isset($fields[$name=$matches[1]]))
{ {
$fields = array($name => $fields[$name]); $fields = array($name => $fields[$name]);
@ -258,6 +258,7 @@ class customfields_widget
$input =& boetemplate::empty_cell('select',$this->prefix.$lname,array( $input =& boetemplate::empty_cell('select',$this->prefix.$lname,array(
'sel_options' => $field['values'], 'sel_options' => $field['values'],
'size' => $field['rows'], 'size' => $field['rows'],
'enhance' => $field['enhance'],
'no_lang' => True, 'no_lang' => True,
)); ));
if($this->advanced_search) if($this->advanced_search)