Fix relative path

This commit is contained in:
Dennis Eichhorn 2019-02-11 17:24:35 +01:00
parent 07c1bf87c6
commit ab54e285c4
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
<tr>
<td colspan="6">
<tbody>
<?php $count = 0; foreach ([] as $key => $value) : $count++; ?>
<?php $count = 0; foreach ([] as $key => $value) : ++$count; ?>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>

View File

@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?>
<tr>
<td colspan="6">
<tbody>
<?php $count = 0; foreach ($items as $key => $value) : $count++;
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/sales/item/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getNumber()); ?></a>