From a058470e57c15257a1b3da7dfac387f210fdcda5 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 19 May 2019 19:08:35 +0200 Subject: [PATCH] Fix increment to pre-increment --- Theme/Backend/Components/Tasks/list.tpl.php | 2 +- Theme/Backend/task-dashboard.tpl.php | 2 +- Theme/Backend/task-single.tpl.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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() !== '') : ?>