Skip to content

Commit a587bfe

Browse files
committed
[CrudExtension] Trim value before repeated values comparison
1 parent f2312e5 commit a587bfe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- php-version: '8.5'
6969

7070
#CS
71-
- php-version: '8.5'
71+
- php-version: '8.1'
7272
description: 'with Coding Standards'
7373
coding-standards: true
7474

src/Twig/CrudExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public function td(Environment $environment, string $columnId, Crud $crud, mixed
411411

412412
$repeatedValue = false;
413413
if (null !== $options['repeated_values_string']) {
414-
$value = (string) $value; // transform to string is important : eg: Twig Markup
414+
$value = trim((string) $value); // transform to string is important : eg: Twig Markup
415415
if (isset($this->lastTdValues[$crud->getSessionName()][$columnId]) && $this->lastTdValues[$crud->getSessionName()][$columnId] === $value) {
416416
if ('' !== $value) {
417417
$repeatedValue = true;

0 commit comments

Comments
 (0)