From a76c9c3c5ee349dba932a27de80751c8702e7918 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Thu, 9 Feb 2012 11:46:33 +1300 Subject: [PATCH] BUGFIX Fix checkFieldsForAction() when working with tabs --- forms/Form.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/forms/Form.php b/forms/Form.php index 63606ea04..b02a02af8 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -379,10 +379,9 @@ class Form extends RequestHandler { if($field = $this->checkFieldsForAction($field->FieldList(), $funcName)) { return $field; } - } elseif (!$field->hasMethod($funcName)) { - continue; + } elseif ($field->hasMethod($funcName)) { + return $field; } - return $field; } }