[eluser]xwero[/eluser]
Strange that they haven't added the _translate_fieldname method to the following code
Code:
// Is the parameter we are inserting into the error message the name
// of another field? If so we need to grab its "field label"
if (isset($this->_field_data[$param]) AND isset($this->_field_data[$param]['label']))
{
$param = $this->_field_data[$param]['label'];
}
So the fix would be
Code:
// Is the parameter we are inserting into the error message the name
// of another field? If so we need to grab its "field label"
if (isset($this->_field_data[$param]) AND isset($this->_field_data[$param]['label']))
{
$param = $this->_translate_fieldname($this->_field_data[$param]['label']);
}
[eluser]helmutbjorg[/eluser]
I've hit on the same problem. Can't seem to find the code you are talking about to fix the problem. I have looked through the Form_validation.php file and right through the _execute function. Even searched for parts of the text you posted. But to no avail... What am i missing?
[eluser]akkumaru[/eluser]
[quote author="xwero" date="1231267908"]It's in the SVN version of the form validation library, found here, i'm apologize for the mix up.[/quote]
ohh,, that's what i thought,,
so i can not fix it myself then,
[eluser]xwero[/eluser]
You can fetch the SVN file and use that, it is as stable or even better than the file from the latest release. And then add the fix.