Renderer: calculate state before retrieving...

...unbound nodes

fixes #74
This commit is contained in:
Thomas Gelf 2017-01-23 09:50:19 +01:00
parent 602202b042
commit 2b8f51e983

View file

@ -301,6 +301,11 @@ abstract class Renderer extends Html
protected function createUnboundParent(BpConfig $bp)
{
// Hint: state is useless here, but triggers parent/child "calculation"
// This is an ugly workaround and should be made obsolete
foreach ($bp->getBpNodes() as $p) {
$p->getState();
}
$unbound = $bp->getUnboundNodes();
$parent = new BpNode($bp, (object) array(