mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 03:24:37 +01:00
Fix query.
This commit is contained in:
@@ -56,7 +56,7 @@ final class VectorsLabelRenderer extends AbstractLabelRenderer
|
|||||||
public function render(array $row, string $label, Translator $translator): string
|
public function render(array $row, string $label, Translator $translator): string
|
||||||
{
|
{
|
||||||
$repository = $this->repositoryManager->getRepository(VectorModel::class);
|
$repository = $this->repositoryManager->getRepository(VectorModel::class);
|
||||||
$count = $repository->countBy(['pid'], [$row['id']]);
|
$count = $repository->countBy(['pid=?'], [$row['id']]);
|
||||||
$label .= sprintf(
|
$label .= sprintf(
|
||||||
'<span class="tl_gray"> (%s %s)</span>',
|
'<span class="tl_gray"> (%s %s)</span>',
|
||||||
$count,
|
$count,
|
||||||
|
|||||||
Reference in New Issue
Block a user