Skip to content

Commit

Permalink
Set lastAction to current url instead of empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed May 6, 2015
1 parent 911aafa commit 7e2efa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/View/Helper/FormHelper.php
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 7e2efa4

Please sign in to comment.