From 242dc113465217467d8c5223a5916e2821eefdcd Mon Sep 17 00:00:00 2001 From: fug4zi Date: Tue, 21 Mar 2017 14:27:36 +0100 Subject: [PATCH] Update FormHelper.php options['url'] must be verified too, because $options['action'] is deprecated. See cakephp-2.9.6/lib/Cake/View/Helper/FormHelper.php Line 382 --- lib/Cake/View/Helper/FormHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 8690b5c7c6e..a964d66dfbe 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -353,7 +353,7 @@ public function create($model = null, $options = array()) { } $options = array_merge(array( - 'type' => ($created && empty($options['action'])) ? 'put' : 'post', + 'type' => ($created && (empty($options['action']) || empty($options['url']))) ? 'put' : 'post', 'action' => null, 'url' => null, 'default' => true,