From 65d7398c639c4fd79844653666563a70e3bf4550 Mon Sep 17 00:00:00 2001 From: Jake Bentvelzen Date: Tue, 15 Dec 2015 18:00:57 +1100 Subject: [PATCH] Removed validation from LookupField as it's readonly and just gets in the way of saving data in certain cases --- forms/LookupField.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/forms/LookupField.php b/forms/LookupField.php index 7dab87f21..691fbcab1 100644 --- a/forms/LookupField.php +++ b/forms/LookupField.php @@ -79,6 +79,16 @@ class LookupField extends DropdownField { return parent::Field($properties); } + /** + * Validate this field + * + * @param Validator $validator + * @return bool + */ + public function validate($validator) { + return true; + } + /** * @return LookupField */