Docs › Releases › 1.20 › Changelog
Recurnix 1.20 changelog
Every change in 1.20, by kind. For what it means and whether to update, read the release notes.
Fixed
- Three admin forms asked the operator to pick a client by database id.
Select::make('client_id')->relationship('client', 'id')uses the id as the option label, so the Client field offered1,2,3and nothing else. Measured on the live Create Invoice page, the field's only option was literally1. On a real book that is a scrolling list of integers with nothing to tell one customer from another — and the document being raised is an invoice, an order or a payment, which then goes to whoever was picked. Affected: Invoices, Orders, Transactions.
Added
App\Filament\Forms\ClientSelect— one definition of how a customer is chosen: labelled Client, searchable across company name, first name, last name and email, preloaded, and showingAcme Hosting Ltd (Ada Owner) — ada@acme.testrather than a number.- 10 more committed tests (204 total, 650 assertions).
Notes
- ⚠ A correction to this project's own backlog. The recorded finding said "four admin forms pick a client by raw numeric id". It was three. Two more (Tickets, Quotes) match a grep for
relationship('client', 'id')but immediately override the label withgetOptionLabelFromRecordUsing(... display_name), so they were never showing ids. They are left alone, and a test now fails if that override is ever removed. Services and Credit notes use theemailcolumn and were also fine. Four of seven were already readable. - The component deliberately does not call
->required(). Whether a client is mandatory belongs to the form, not to how the field is drawn; every caller still says so itself. There is a test for that, because a shared component that quietly asserted it would change three forms' validation at once. - Verified on the live page, before and after — the rendered options on
/admin/invoices/create, read out of the DOM after the Livewire component had hydrated, not from the source.