|
@@ -367,11 +367,16 @@ class FormHelper extends Helper
|
|
|
}
|
|
}
|
|
|
unset($options['templates']);
|
|
unset($options['templates']);
|
|
|
|
|
|
|
|
- $url = $this->_formUrl($context, $options);
|
|
|
|
|
- $action = $this->Url->build($url);
|
|
|
|
|
- unset($options['url'], $options['action'], $options['idPrefix']);
|
|
|
|
|
|
|
+ if ($options['action'] === false || $options['url'] === false) {
|
|
|
|
|
+ $url = $this->request->here(false);
|
|
|
|
|
+ $action = null;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $url = $this->_formUrl($context, $options);
|
|
|
|
|
+ $action = $this->Url->build($url);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
$this->_lastAction($url);
|
|
$this->_lastAction($url);
|
|
|
|
|
+ unset($options['url'], $options['action'], $options['idPrefix']);
|
|
|
|
|
|
|
|
$htmlAttributes = [];
|
|
$htmlAttributes = [];
|
|
|
switch (strtolower($options['type'])) {
|
|
switch (strtolower($options['type'])) {
|