From 1037b103f58a31b608e15044fc849326c2bc1f3e Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 21 Feb 2014 15:52:10 -0500 Subject: [PATCH] Use the widget objects for textarea. Use widgets instead of templates directly. --- src/View/Helper/FormHelper.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/View/Helper/FormHelper.php b/src/View/Helper/FormHelper.php index ee0a829bbe5..520c8a9afe4 100755 --- a/src/View/Helper/FormHelper.php +++ b/src/View/Helper/FormHelper.php @@ -1423,20 +1423,7 @@ public function __call($method, $params) { */ public function textarea($fieldName, $options = array()) { $options = $this->_initInputField($fieldName, $options); - $value = null; - - if (array_key_exists('val', $options)) { - $value = $options['val']; - if (!array_key_exists('escape', $options) || $options['escape'] !== false) { - $value = h($value); - } - } - unset($options['val']); - return $this->formatTemplate('textarea', [ - 'name' => $options['name'], - 'value' => $value, - 'attrs' => $this->_templater->formatAttributes($options, ['name']), - ]); + return $this->widget('textarea', $options); } /**