Forums / General / Did the parameters for the fetch operator change in 3.2.x?

Did the parameters for the fetch operator change in 3.2.x?

Author Message

Hans Melis

Wednesday 03 December 2003 6:26:13 am

We've tried countless times to fetch objects of a custom-made class in templates, always resulting in an empty array.

The fetch we used was like this:
{let list=fetch('content', 'list', hash( parent_node_id, 46, class_filter_type, include, class_filter_array, array(21)))}

The node id and the class id are correct. When we tried to fetch without the class_filter, it worked but it obviously did not return the result we wanted.

Our minds almost ready to crash instantly, we saw the light. The idea was to try class identifiers instead of class ids. Another refresh and there was the result we expected.

I'm sure that the class_filter worked with IDs, and the identifier option was probably added at some point. The documentation doesn't reflect this though.

So did the behaviour change (or rather, was support for IDs dropped) or is this a bug?

BTW, this all happened on an install of version 3.2-3

--
Hans

Hans
http://blog.hansmelis.be