Improve readonly handling when a link is specified

This commit is contained in:
Nathan Gray 2009-02-04 17:17:40 +00:00
parent 964e28a3d8
commit 346f749219

View File

@ -153,7 +153,11 @@
$search =& $widget->get_widget_by_name('search');
if(($cell['readonly'] || $readonlys['search']) && $options['link']) {
$cell['readonly'] = false;
if(!is_array($readonlys)) {
$readonlys = array('search' => true);
} else {
$readonlys['search'] = true;
}
$search['type'] = 'label';
$search['no_lang'] = 1;
$search['size'] = ',' . $options['link'];