display stack content getStackID not working (working with getStackName)

Permalink
Hi,

I'm building a block and I want to display a stack in each item of an accordion.

However I have an issue because in my view.php

This is working well
<?php $stack = Stack::getByName($contentStack); $stack->display(); ?>

This is not working:
<?php $stack = Stack::getByID($contentStackID); $stack->display(); ?>

Has someone an idea ? My object is valid and exist in both case it display the same information with var_dump($stack)

Thanks for your help

appliculture
 
appliculture replied on at Permalink Reply
appliculture
Ok it's working now.. just make sure that your id is an integer.. (stupid me)