Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 541ea72

Browse files
authored
Fix LinkColumn
1 parent 1fd4665 commit 541ea72

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Datatable/Column/LinkColumn.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,10 @@ public function renderSingleField(array &$row)
118118
$content .= '</a>';
119119
}
120120
}
121-
} else {
122-
$content = $this->getEmptyValue();
121+
$this->accessor->setValue($row, $path, $content);
123122
}
124123

125-
$this->accessor->setValue($row, $path, $content);
124+
return $this;
126125
}
127126

128127
/**
@@ -194,8 +193,6 @@ public function renderToMany(array &$row)
194193
$this->accessor->setValue($row, $path, $this->getEmptyValue());
195194
}
196195
}
197-
} else {
198-
$this->accessor->setValue($row, $path, $this->getEmptyValue());
199196
}
200197

201198
return $this;

0 commit comments

Comments
 (0)