Skip to content

Commit

Permalink
BUGFIX Fixed "method is not a string" error in Form::httpSubmission()
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@80380 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
Sean Harvey authored and Sam Minnee committed Feb 2, 2011
1 parent bfce550 commit f33ee9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion forms/Form.php
Expand Up @@ -242,7 +242,9 @@ function httpSubmission($request) {

// Otherwise, try a handler method on the form object
} else {
return $this->$funcName($vars, $this, $request);
if($this->hasMethod($funcName)) {
return $this->$funcName($vars, $this, $request);
}
}
}

Expand Down

0 comments on commit f33ee9a

Please sign in to comment.