Fix increment to pre-increment

This commit is contained in:
Dennis Eichhorn 2019-05-19 19:08:35 +02:00
parent 51211dcc33
commit c776741885

View File

@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tr><td colspan="4">
<tbody>
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/department/profile?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', '0', '0') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>