BUGFIX Fix checkFieldsForAction() when working with tabs

This commit is contained in:
Andrew O'Neil 2012-02-09 11:46:33 +13:00
parent df716eff45
commit a76c9c3c5e

View File

@ -379,12 +379,11 @@ class Form extends RequestHandler {
if($field = $this->checkFieldsForAction($field->FieldList(), $funcName)) { if($field = $this->checkFieldsForAction($field->FieldList(), $funcName)) {
return $field; return $field;
} }
} elseif (!$field->hasMethod($funcName)) { } elseif ($field->hasMethod($funcName)) {
continue;
}
return $field; return $field;
} }
} }
}
/** /**
* Handle a field request. * Handle a field request.