diff --git a/composer.json b/composer.json index 0099310ad..b025d27fe 100644 --- a/composer.json +++ b/composer.json @@ -47,7 +47,7 @@ "yiisoft/router": "^3.0", "yiisoft/strings": "^2.0", "yiisoft/translator": "^3.0", - "yiisoft/validator": "^1.2", + "yiisoft/validator": "^2.0", "yiisoft/view": "^10.0", "yiisoft/widget": "^2.0" }, diff --git a/src/Column/DataColumnRenderer.php b/src/Column/DataColumnRenderer.php index abc7ec09b..d501cb269 100644 --- a/src/Column/DataColumnRenderer.php +++ b/src/Column/DataColumnRenderer.php @@ -110,7 +110,7 @@ public function renderFilter(ColumnInterface $column, Cell $cell, FilterContext ), ]; - $errors = $context->validationResult->getAttributeErrorMessages($column->property); + $errors = $context->validationResult->getPropertyErrorMessages($column->property); if (!empty($errors)) { $cell = $cell->addClass($context->cellInvalidClass); $content[] = Html::div(attributes: $context->errorsContainerAttributes)