Details
-
Bug
-
Resolution: Invalid
-
Medium
-
None
-
None
-
None
Description
Hi. Don't really know if this is a bug or something to be investigated through the template engine.
Anyway, i'm having problems with unserialize calls in templates. Templates like customer.tpl (to see information about your customers) have this piece of code
{def $ftp_target = unserialize( $customer.ftp_target )}
usign it like that, i get
Error: eZTemplate:elementValue Mar 08 2010 19:35:59 Missing array data structure, got NULL
in my debug, and i cannot see any of the data about the ftp_target for the customers.
i've changed that to
{def $ftp_target = $customer.ftp_target|unserialize()}
i've done it in other templates, so i attach a patch that you may want to review.
Best.
Steps to reproduce
- Add a customer and a ftp target for it.
- Try to get information for ftp target for that customer in customer list.