-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
searchable: true + NULL value causes the record not to be displayed #562
Comments
Hey, can't reproduce this. I changed the addresses city field in our demo to Bildschirmaufnahme.2024-09-06.um.12.13.08.movCan you provide additional information on how I can reproduce this? |
I've tried to reproduce it with the city field of the demo too and can't reproduce it. But then I removed the street and zip fields and boom the line is gone (also added ID field to have an overview). Initial Setup: def fields do
[
street: %{
module: Backpex.Fields.Text,
label: "Street Name",
searchable: true
},
zip: %{
module: Backpex.Fields.Text,
label: "Zip Code",
searchable: true
},
city: %{
module: Backpex.Fields.Text,
label: "City",
searchable: true
},
country: %{
module: Backpex.Fields.Select,
label: "Country",
options: [Germany: "de", Austria: "at", Switzerland: "ch"]
}
]
end You see the last line doesn't have a city and items count is 10. Removing zip & street (and adding id, which doesn't make a difference): def fields do
[
id: %{
module: Backpex.Fields.Number,
label: "ID",
except: [:create, :update]
},
city: %{
module: Backpex.Fields.Text,
label: "City",
searchable: true,
required: false
},
country: %{
module: Backpex.Fields.Select,
label: "Country",
options: [Germany: "de", Austria: "at", Switzerland: "ch"]
}
]
end You see that the last line is gone and item count is 9. Content of the
Last line doesn't have a city. Changed via Hope that helps :) |
Hey @phortx, thanks for the detailed description. I will look into it! |
Describe the bug
I have a nullable string field, with
searchable: true
. When the field is null, it will not be displayed in the index even without touching the search field. When I remove searchable: true or insert an value, it will be displayed in the index table.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would have expected to see the record on index page unless I start a search.
Please complete the following information:
The text was updated successfully, but these errors were encountered: