Skip to content

Commit

Permalink
Adapt to Yii Validator 2 (#197)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
dependabot[bot] and vjik authored Aug 6, 2024
1 parent 5396fbb commit 645240c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Column/DataColumnRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 645240c

Please sign in to comment.