Looks like a bug to me.

I guess we need to add a unit test for this case.

In any case, i just checked in a fix, or at least an improvement for this.

Bret

On 2/3/06, Angrez Singh <[EMAIL PROTECTED]> wrote:
Hi,

I have noticed a variable called suppliedValue that is not defined anywhere in the code. Is it a bug or I am missing something?


def doKeyPress( value )
begin
    maxLength = @o.maxLength
    if value.length > maxLength
    value = suppliedValue[0 .. maxLength ]
    @container.log " Supplied string is #{suppliedValue.length } chars, which exceeds the max length (#{maxLength}) of the field. Using value: #{value}"


Regards,
Angrez

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to