Skip to content
Permalink
Browse files

fixes postLink form last action

  • Loading branch information...
bancer committed Sep 5, 2016
1 parent 0feb93f commit 5253f0b3bd06f3a1e3cc776e6dd90116a5a108e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/FormHelper.php
@@ -1888,7 +1888,7 @@ public function postLink($title, $url = null, $options = array(), $confirmMessag
}
$previousLastAction = $this->_lastAction;
$this->_lastAction($url);
$this->_lastAction($formUrl);
$out = $this->Html->useTag('form', $formUrl, $formOptions);
$out .= $this->Html->useTag('hidden', '_method', array(

5 comments on commit 5253f0b

@oscar-ol

This comment has been minimized.

Copy link

oscar-ol replied Sep 13, 2016

if I have activated the Security component, this change blackholes postLinks.

@bancer

This comment has been minimized.

Copy link
Contributor Author

bancer replied Sep 13, 2016

What are your $url and $formUrl values?

@oscar-ol

This comment has been minimized.

Copy link

oscar-ol replied Sep 13, 2016

Tested in a clean installation with Security C., cake bake, delete postLink blackholed.
debug($url);
array(
'action' => 'delete',
(int) 0 => '2'
)
debug($formUrl);
'/test/tests/delete/2'

@markstory

This comment has been minimized.

Copy link
Member

markstory replied Sep 13, 2016

@oscar-ol Please open a new issue. Commit comments get lost very easily and are not suitable for reporting issues.

@bancer

This comment has been minimized.

Copy link
Contributor Author

bancer replied Sep 13, 2016

'/test/tests/delete/2'

Is it delete method in a plugin or is it the project installed in test subfolder?

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