Skip to content
Permalink
Browse files

Also allow setting 'action' to false

  • Loading branch information...
ADmad committed May 6, 2015
1 parent 7e2efa4 commit a8e39ed3c4096432d1466bfdb4d54397fce2c269
Showing with 4 additions and 1 deletion.
  1. +1 −1 src/View/Helper/FormHelper.php
  2. +3 −0 tests/TestCase/View/Helper/FormHelperTest.php
@@ -367,7 +367,7 @@ public function create($model = null, array $options = [])
}
unset($options['templates']);
if ($options['url'] === false) {
if ($options['action'] === false || $options['url'] === false) {
$url = $this->request->here(false);
$action = null;
} else {
@@ -691,6 +691,9 @@ public function testCreateNoUrl()
'/div'
];
$this->assertHtml($expected, $result);
$result = $this->Form->create(false, ['action' => false]);
$this->assertHtml($expected, $result);
}
/**

0 comments on commit a8e39ed

Please sign in to comment.
You can’t perform that action at this time.