init $positions early

This commit is contained in:
Uwe Steinmann 2018-03-28 17:06:25 +02:00
parent 3e2931068e
commit 9f211d1fda

View File

@ -42,8 +42,8 @@ class SeedDMS_View_WorkflowGraph extends SeedDMS_Bootstrap_Style {
header('Content-Type: application/javascript; charset=UTF-8');
$renderdata = $this->workflow->getLayoutData();
if($renderdata) {
$positions = array();
if($renderdata) {
$data = json_decode($renderdata);
foreach($data->nodes as $node) {
if($node->group == 'nodes') {