ZF-8054: Validators return wrong field names while using belongsto

Issue Type: Sub-task Created: 2009-10-12T07:34:09.000+0000 Last Updated: 2010-04-16T06:14:23.000+0000 Status: Resolved Fix version(s): Reporter: Radek Antoniuk (warden) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: Attachments:


I have a form configured like this:

login.elements.dane1.type = "text" login.elements.dane1.options.label = "Dziecko:" login.elements.dane1.options.class= "required" login.elements.dane1.options.required = true login.elements.dane1.options.belongsto = "dziecko1" = "pax"

login.elements.wiek1.type = "text" login.elements.wiek1.options.label = "Wiek:" = "age" login.elements.wiek1.options.class= "required" login.elements.wiek1.options.validators.regex.validator = "regex" login.elements.wiek1.options.validators.regex.options.pattern = "^/[0-9]{1,2}/" login.elements.wiek1.options.required = true login.elements.wiek1.options.belongsto = "dziecko1"

This renders:

Then, zend_Form returns in json: "wiek1":{"isEmpty":"Pole musi by\u0107 wype\u0142nione."}

which is actually not very helpful, because I need the real name of the DOM object so dziecko1-age.

The dd tag also renders wrong id:

should be:


Posted by Christian Albrecht (alab) on 2010-04-16T06:14:23.000+0000

Duplicates now parent ZF-9607 which has a Patch and Unit Test attached.

Have you found an issue?

See the Overview section for more details.


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

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