Commit 89fb2d2
committed
bug EasyCorp#6740 Bug EasyCorp#5161 Disallow clear in AssociationField when field is required (Sobak)
This PR was merged into the 4.x branch.
Discussion
----------
Bug EasyCorp#5161 Disallow clear in AssociationField when field is required
Hi,
This small change closes EasyCorp#5161 and instructs the frontend library to not render the `x` button for unsetting the association completely.
Admittedly, "extending" the trait methods in PHP is always weird and it's not very common, but it allows for the least amount of code repetition. This approach also doesn't require any JS changes. Please let me know if such approach is acceptable. This is my first contribution so there might be some other rules that I'm not aware of.
Thanks!
Commits
-------
20ff3e4 bug EasyCorp#5161 Disallow clear in AssociationField when field is required1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
0 commit comments