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

Already fixed with r19974