Commit a35fcbbf by Thiago Talma

Adjust tab as space

parent 632a537a
......@@ -140,11 +140,11 @@ class DataColumn extends Column
protected function renderDataCellContent($model, $key, $index)
{
if ($this->value !== null) {
if (is_callable($this->value)) {
$value = call_user_func($this->value, $model, $index, $this);
} else {
$value = ArrayHelper::getValue($model, $this->value);
}
if (is_callable($this->value)) {
$value = call_user_func($this->value, $model, $index, $this);
} else {
$value = ArrayHelper::getValue($model, $this->value);
}
} elseif ($this->content === null && $this->attribute !== null) {
$value = ArrayHelper::getValue($model, $this->attribute);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment