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

Commit

Permalink
Fix LinkColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb33300 authored Mar 24, 2020
1 parent 1fd4665 commit 541ea72
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Datatable/Column/LinkColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ public function renderSingleField(array &$row)
$content .= '</a>';
}
}
} else {
$content = $this->getEmptyValue();
$this->accessor->setValue($row, $path, $content);
}

$this->accessor->setValue($row, $path, $content);
return $this;
}

/**
Expand Down Expand Up @@ -194,8 +193,6 @@ public function renderToMany(array &$row)
$this->accessor->setValue($row, $path, $this->getEmptyValue());
}
}
} else {
$this->accessor->setValue($row, $path, $this->getEmptyValue());
}

return $this;
Expand Down

0 comments on commit 541ea72

Please sign in to comment.