Skip to content

Commit d944894

Browse files
committed
fixed postLink
1 parent 3fc6fba commit d944894

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

View/Helper/BoostCakeFormHelper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,13 @@ public function postLink($title, $url = null, $options = array(), $confirmMessag
255255
unset($options['block']);
256256
}
257257

258+
$fields = $this->fields;
259+
$this->fields = array();
260+
258261
$out = parent::postLink($title, $url, $options, $confirmMessage);
259262

263+
$this->fields = $fields;
264+
260265
if ($block) {
261266
$regex = '/<form.*?>.*?<\/form>/';
262267
if (preg_match($regex, $out, $match)) {

0 commit comments

Comments
 (0)