Permalink
Browse files

BUGFIX Fix checkFieldsForAction() when working with tabs

  • Loading branch information...
andrewandante committed Feb 8, 2012
1 parent df716ef commit a76c9c3c5ee349dba932a27de80751c8702e7918
Showing with 2 additions and 3 deletions.
  1. +2 −3 forms/Form.php
View
@@ -379,10 +379,9 @@ protected function checkFieldsForAction($fields, $funcName) {
if($field = $this->checkFieldsForAction($field->FieldList(), $funcName)) {
return $field;
}
- } elseif (!$field->hasMethod($funcName)) {
- continue;
+ } elseif ($field->hasMethod($funcName)) {
+ return $field;
}
- return $field;
}
}

0 comments on commit a76c9c3

Please sign in to comment.