From d9798af30c7b96cff5652ee0df209983ad3a4448 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Sat, 26 Mar 2016 11:07:33 +0000 Subject: [PATCH] Deprecate TextField::InternallyLabelledField() (closes #1684) --- forms/TextField.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forms/TextField.php b/forms/TextField.php index f374500f8..15d0d5c75 100644 --- a/forms/TextField.php +++ b/forms/TextField.php @@ -74,6 +74,8 @@ class TextField extends FormField { * @return string */ public function InternallyLabelledField() { + Deprecation::notice('4.0', 'Please use ->setValue() instead'); + if(!$this->value) { $this->value = $this->Title(); }