Skip to content

Commit a08491f

Browse files
committed
Respect default value when column is a custom widget
1 parent 157a7dd commit a08491f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/BaseColumn.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ protected function renderWidget($type, $name, $value, $options)
477477
{
478478
$model = $this->getModel();
479479
if ($model instanceof Model) {
480+
$model->{$this->name} = $value;
480481
$widgetOptions = [
481482
'model' => $model,
482483
'attribute' => $this->name,

0 commit comments

Comments
 (0)