Forums / Suggestions / Errors summary on publish of object

Errors summary on publish of object

Author Message

Nabil Alimi

Wednesday 04 October 2006 5:40:04 am

Hi,

The error summary that occured on an object are stored into the $validation.attributes variable. But this array has no index. It is a bit more difficult if i want to display errors related to a field next to it.
Having the summary into an hash would be nice. :)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Claudia Kosny

Thursday 05 October 2006 12:23:05 am

Hello Nabil

If necessary you could always put it into a hash which has the identifiers or ids as key, although it means one additional array iteration. But you are right, having such an index per default would be nice.

Greetings from Luxembourg

Claudia

Nabil Alimi

Thursday 05 October 2006 1:06:28 am

Hi Claudia,

That's how I processed. ;)

But that makes more templating processins for something that could be built-in.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr