From 88b0f31f1aeb1e64d39569765492af9c96db914a Mon Sep 17 00:00:00 2001 From: John Milmine Date: Wed, 11 Jun 2014 11:54:29 +1200 Subject: [PATCH] fix to mathspamprotector field so that the type returns the same format as other text fields, e.g EmailField --- code/MathSpamProtectorField.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/MathSpamProtectorField.php b/code/MathSpamProtectorField.php index b44f177..9d23dc0 100644 --- a/code/MathSpamProtectorField.php +++ b/code/MathSpamProtectorField.php @@ -146,4 +146,8 @@ class MathSpamProtectorField extends TextField { return $numbers[$num]; } + + public function Type() { + return 'mathspamprotector text'; + } }