Merge pull request #5230 from kinglozzer/1684-textfield

Deprecate TextField::InternallyLabelledField() (closes #1684)
This commit is contained in:
Daniel Hensby 2016-03-26 21:14:33 +00:00
commit 3a932c963f

View File

@ -74,6 +74,8 @@ class TextField extends FormField {
* @return string * @return string
*/ */
public function InternallyLabelledField() { public function InternallyLabelledField() {
Deprecation::notice('4.0', 'Please use ->setValue() instead');
if(!$this->value) { if(!$this->value) {
$this->value = $this->Title(); $this->value = $this->Title();
} }