Skip to content

Commit a863732

Browse files
authored
Link column fix (#2223) (#2224)
* Link column fix (#2223) * Add handling for From field for "LinkColumn" * Update ChangeLog
1 parent 0c8bbef commit a863732

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-livewire-tables` will be documented in this file
44

5+
## [v3.7.1] - 2025-02-28
6+
### Bug Fixes
7+
- Ensure that LinkColumn is included in query if "from" is defined
8+
59
## [v3.7.0] - 2025-02-27
610

711
### Bug Fixes

src/Views/Columns/LinkColumn.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public function __construct(string $title, ?string $from = null)
2222
{
2323
parent::__construct($title, $from);
2424

25-
$this->label(fn () => null);
25+
if (! isset($from)) {
26+
$this->label(fn () => null);
27+
}
2628
}
2729

2830
public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View

0 commit comments

Comments
 (0)