Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextAreaWithAutocompleteInput.php |
— | — | @@ -93,6 +93,11 @@ |
94 | 94 | $textarea_attrs['onKeyDown'] = $maxLengthJSCheck; |
95 | 95 | $textarea_attrs['onKeyUp'] = $maxLengthJSCheck; |
96 | 96 | } |
| 97 | + // Bug in Xml::element()? It doesn't close the textarea tag |
| 98 | + // properly if the text inside is null - set it to '' instead. |
| 99 | + if ( is_null( $cur_value ) ) { |
| 100 | + $cur_value = ''; |
| 101 | + } |
97 | 102 | $textarea_input = Xml::element( 'textarea', $textarea_attrs, $cur_value, false ); |
98 | 103 | $text .= $textarea_input; |
99 | 104 | |