diff --git a/Theme/Backend/Components/Tasks/list.tpl.php b/Theme/Backend/Components/Tasks/list.tpl.php index 55a4b53..e7461ca 100644 --- a/Theme/Backend/Components/Tasks/list.tpl.php +++ b/Theme/Backend/Components/Tasks/list.tpl.php @@ -6,7 +6,7 @@ getHtml('Title', 'Tasks') ?> - tasks as $key => $task) : $c++; + tasks as $key => $task) : ++$c; $url = \phpOMS\Uri\UriFactory::build('{/prefix}task/single?{?}&id=' . $task->getId()); $color = 'darkred'; if ($task->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; } diff --git a/Theme/Backend/task-dashboard.tpl.php b/Theme/Backend/task-dashboard.tpl.php index 99ece59..04b98c8 100644 --- a/Theme/Backend/task-dashboard.tpl.php +++ b/Theme/Backend/task-dashboard.tpl.php @@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?> $task) : $c++; + $c = 0; foreach ($tasks as $key => $task) : ++$c; $url = \phpOMS\Uri\UriFactory::build('{/prefix}task/single?{?}&id=' . $task->getId()); ?> diff --git a/Theme/Backend/task-single.tpl.php b/Theme/Backend/task-single.tpl.php index 4549f6b..016d303 100644 --- a/Theme/Backend/task-single.tpl.php +++ b/Theme/Backend/task-single.tpl.php @@ -122,7 +122,7 @@ echo $this->getData('nav')->render(); ?> $element) : $c++; + foreach ($elements as $key => $element) : ++$c; if ($element->getDescription() !== '') : ?>