Revert changes to Table->fillCells()
These changes were introduced in https://github.com/symfony/symfony/pull/37731 but no longer contributed to the actual fix, which was to perform a ->copyRow().
This commit is contained in:
parent
0f92b9a584
commit
17263ca14d
@ -674,16 +674,12 @@ class Table
|
||||
{
|
||||
$newRow = [];
|
||||
|
||||
$newColumn = null;
|
||||
foreach ($row as $column => $cell) {
|
||||
if (null === $newColumn) {
|
||||
$newColumn = $column;
|
||||
}
|
||||
$newRow[$newColumn++] = $cell;
|
||||
$newRow[] = $cell;
|
||||
if ($cell instanceof TableCell && $cell->getColspan() > 1) {
|
||||
foreach (range($column + 1, $column + $cell->getColspan() - 1) as $position) {
|
||||
// insert empty value at column position
|
||||
$newRow[$newColumn++] = '';
|
||||
$newRow[] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user