if textarea is readonly, but form_name is already used by an other widget, dont use it

browser would only send the content of the readonly (and therefore unchanged) field
This commit is contained in:
Ralf Becker 2009-08-10 11:33:32 +00:00
parent 77de24e563
commit f8ccec0d35

View File

@ -1167,6 +1167,9 @@ class etemplate extends boetemplate
}
else
{
// if textarea is readonly, but form_name is already used by an other widget, dont use it
// browser would only send the content of the readonly (and therefore unchanged) field
if ($readonly && self::$request->isset_to_process($form_name)) $form_name = '';
$html .= html::textarea($form_name,$value,
$options.html::formatOptions($cell_options,'ROWS,COLS'));
}