diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index fd5bd7563..3b81ad848 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -3390,11 +3390,15 @@ class e_form case 'textarea': $text = ""; - if(vartrue($parms['append'])) // similar to comments - TODO TBD. a 'comment' field type may be better. + if(vartrue($parms['append']) && vartrue($value)) // similar to comments - TODO TBD. a 'comment' field type may be better. { $attributes['readParms'] = 'bb=1'; - $text = $this->renderValue($key, $value, $attributes).$this->hidden($key, $value).'
'; + + $text = $this->renderValue($key, $value, $attributes); + $text .= '
'; $value = ""; + + // Appending needs is performed and customized using function: beforeUpdate($new_data, $old_data, $id) } $text .= $this->textarea($key, $value, vartrue($parms['rows'], 5), vartrue($parms['cols'], 40), vartrue($parms['__options'],$parms), varset($parms['counter'], false));