ZF-8662: Zend_Validate_Barcode returns bad informations
Description
When validating '123456789' with Itf14 validator: we receive "'123456789' should be 9 characters" instead of "'123456789' should be 14 characters"
In Zend_Validate_Barcode, line 193:
$this->_length = strlen($value);
$adapter = $this->getAdapter();
should be replace by
$adapter = $this->getAdapter();
$this->_length = $adapter->getLength();
Comments
Posted by Thomas Weidner (thomas) on 2009-12-31T03:43:42.000+0000
Already fixed with r19974