diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index 841354442..e6dc9e344 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -5974,7 +5974,7 @@ class FormHelperTest extends CakeTestCase { public function testPostButton() { $result = $this->Form->postButton('Hi', '/controller/action'); $this->assertTags($result, array( - 'form' => array('method' => 'post', 'action' => '/controller/action', 'accept-charset' => 'utf-8', 'style' => 'display:none;'), + 'form' => array('method' => 'post', 'action' => '/controller/action', 'accept-charset' => 'utf-8'), 'div' => array('style' => 'display:none;'), 'input' => array('type' => 'hidden', 'name' => '_method', 'value' => 'POST'), '/div', @@ -6000,7 +6000,6 @@ class FormHelperTest extends CakeTestCase { $expected = array( 'form' => array( 'method' => 'post', 'action' => '/posts/delete/1', 'accept-charset' => 'utf-8', - 'style' => 'display:none;' ), array('div' => array('style' => 'display:none;')), array('input' => array('type' => 'hidden', 'name' => '_method', 'value' => 'POST')), diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 1ec528f5a..4820259e2 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -1545,7 +1545,7 @@ class FormHelper extends AppHelper { /** * Create a `