Michal Charemza wrote: > Hi, > > In my validation XML, I am trying to "export" a number, "rooms" by: > > <ae:parameter name="export">commercial[site-info][rooms]</ae:parameter> > > But it doesn't seem to appear in the "commercial" array passed to the > action, but it *does* appear as the stand-alone parameter "rooms". If > I change the validator to the "string" class, it seems to export fine. > > How can I export a number?
AgaviNumberValidator doesn't support exporting so the stand-alone parameter must be the original input parameter. I'm not sure if this is intentional but I opened a ticket (https://trac.agavi.org/ticket/1160) and we'll let the masters decide :) For a quick fix you can extend the validator and add the exporting feature ($this->export($value);) -veikko -- Veikko Mäkinen [email protected] 044 5910 413 http://blog.veikko.fi _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
