ZF-9212: Zend_Validate_PostCode error message problem

Issue Type: Bug Created: 2010-02-19T04:57:59.000+0000 Last Updated: 2010-02-19T13:54:18.000+0000 Status: Resolved Fix version(s): - 1.10.2 (24/Feb/10)

Reporter: Wojciech Sielski (jennahan) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


Zend_Validate_PostCode needs:


inside isValid() method


Posted by Thomas Weidner (thomas) on 2010-02-19T11:10:36.000+0000

Please give something which is reproducable. Just a "xxx needs" or "xxx should be" is not enough.

Posted by Thomas Weidner (thomas) on 2010-02-19T11:11:08.000+0000

Changing from Patch to Bug as no patch has been assigned to this issue.

Posted by Wojciech Sielski (jennahan) on 2010-02-19T11:39:49.000+0000

If you attach this Validator to Zend_Form like:

(...) 'validators' => array (new Zend_Validator_Postcode('pl_PL')), (...)

And write in form for example string "hello" it shows error like:

"'' is wrong formated postcode"

Message in Zend_Validator_Postcode is set to "'%value%' is wrong formated postcode"

And as you can see in this weak example that %value% is not set in isValid() method.

Sorry for this not formal code but I`m out of office now.

Posted by Thomas Weidner (thomas) on 2010-02-19T13:54:18.000+0000

Fixed with r21107

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.