Closed sidawson closed 2 years ago
Please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example)
Help me out, I've never reported a nova bug before. So I'd need to create:
I shove all that in a repo somewhere, then add a link here, THEN the above issue can be looked at?
Is that correct?
Yes, that's correct. We already have multiple dusk tests covering dependent field with BelongsTo and Select which doesn't show any issue as described above. Therefore, it very specific to your use-case that we would need reproducing code in order to verify and debug.
However, you could also make sure you do have the latest assets installed by running php artisan nova:publish
.
Transferred to https://github.com/laravel/nova-issues/discussions/4774
Closing this for now, no one else have experience this issue which made it more possible that this is a usage issue and not a bug.
Feel free to submit new issue with reproducing step if anyone have similar issue.
Description:
BelongsTo
with aSelect::make
using->dependsOn
worked on 4.12.14. Does not work on 4.13.0Detailed steps to reproduce the issue on a fresh Nova installation:
eg,
ticket
- has acustomer_id
and acustomer_contract_id
.ticket HasMany customers
customer HasMany customer_contracts
Expected behaviour (seen only in nova 4.12.14)
When a Customer is selected, the Customer Contract dropdown is limited to contracts owned by that customer
Observed behaviour (seen only in nova 4.13.0)
When a Customer is selected, the Customer Contract dropdown disappears from the screen completely