diff --git a/CHANGELOG.md b/CHANGELOG.md index dc56fe69d..b30c7d9f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-livewire-tables` will be documented in this file +## [v3.7.1] - 2025-02-28 +### Bug Fixes +- Ensure that LinkColumn is included in query if "from" is defined + ## [v3.7.0] - 2025-02-27 ### Bug Fixes diff --git a/src/Views/Columns/LinkColumn.php b/src/Views/Columns/LinkColumn.php index 2c024e391..bc5a6f960 100644 --- a/src/Views/Columns/LinkColumn.php +++ b/src/Views/Columns/LinkColumn.php @@ -22,7 +22,9 @@ public function __construct(string $title, ?string $from = null) { parent::__construct($title, $from); - $this->label(fn () => null); + if (! isset($from)) { + $this->label(fn () => null); + } } public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View diff --git a/src/Views/Filters/Traits/IsNumericFilter.php b/src/Views/Filters/Traits/IsNumericFilter.php index 0d613b50b..cc138a3b8 100644 --- a/src/Views/Filters/Traits/IsNumericFilter.php +++ b/src/Views/Filters/Traits/IsNumericFilter.php @@ -6,7 +6,7 @@ trait IsNumericFilter { public function isEmpty(float|int|string|array|null $value): bool { - return ! is_null($value) ? ($this->validate($value) == false) : true; + return ! is_null($value) ? ($this->validate($value) === false) : true; } /**