mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removed validation from LookupField as it's readonly and just gets in the way of saving data in certain cases
This commit is contained in:
parent
d0b1084393
commit
65d7398c63
@ -79,6 +79,16 @@ class LookupField extends DropdownField {
|
|||||||
return parent::Field($properties);
|
return parent::Field($properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate this field
|
||||||
|
*
|
||||||
|
* @param Validator $validator
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function validate($validator) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return LookupField
|
* @return LookupField
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user