Skip to content
Permalink
Browse files

Set lastAction to current url instead of empty string

  • Loading branch information...
ADmad committed May 6, 2015
1 parent 911aafa commit 7e2efa41561bf398bd91b7eaa9d7e782ea76c038
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/View/Helper/FormHelper.php
@@ -368,14 +368,14 @@ public function create($model = null, array $options = [])
unset($options['templates']);
if ($options['url'] === false) {
$url = $this->request->here(false);
$action = null;
$this->_lastAction = '';
} 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 = [];

0 comments on commit 7e2efa4

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