mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-15 02:40:52 +08:00
Fix #20605: Fix return value in SerialColumn::renderDataCellContent()
This commit is contained in:
@@ -42,9 +42,9 @@ class SerialColumn extends Column
|
||||
{
|
||||
$pagination = $this->grid->dataProvider->getPagination();
|
||||
if ($pagination !== false) {
|
||||
return $pagination->getOffset() + $index + 1;
|
||||
return (string) ($pagination->getOffset() + $index + 1);
|
||||
}
|
||||
|
||||
return $index + 1;
|
||||
return (string) ($index + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user