Zend Framework

Zend_Validate_Barcode returns bad informations

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.0
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Validate
  • Labels:
    None

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();

Activity

Hide
Thomas Weidner added a comment -

Already fixed with r19974

Show
Thomas Weidner added a comment - Already fixed with r19974

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: