driebit / ginger

Ginger: awesome semantic CMS built on Zotonic
http://ginger.nl
Apache License 2.0
29 stars 9 forks source link

Fix an issue with dynamic elastic-ids #726

Closed cdfa closed 1 year ago

cdfa commented 1 year ago

Looking up an object with m.collection_object["Object"][id] was broken when id was an elastic2 id (with ::Type appended). This commit fixes this and allows lookup with m.collection_object[id] as well.

mworrell commented 1 year ago

Ah yes, bit inspecting of the typed ids. As they are probably getting mixed up in templates.