diff --git a/include/class.forms.php b/include/class.forms.php index 295c465860f48f9eaf7fc9f1fc35b0ed3606c892..8b3a2ecf49b5f9e762479d59d8db7e4a0dff3334 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -677,8 +677,8 @@ class FormField { # Validates a user-input into an instance of this field on a dynamic # form if ($this->get('required') && !$value && $this->hasData()) - $this->_errors[] = $this->getLabel() - ? sprintf(__('%s is a required field'), $this->getLabel()) + $this->_errors[] = $this->getLocal('label') + ? sprintf(__('%s is a required field'), $this->getLocal('label')) : __('This is a required field'); # Perform declared validators for the field