Skip to content
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

Records from resources not showing #14

Closed
EmilioBravo opened this issue Nov 3, 2022 · 7 comments
Closed

Records from resources not showing #14

EmilioBravo opened this issue Nov 3, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@EmilioBravo
Copy link

When I search for a record for it's title it doesn't show up in the spotlight results

@pxlrbt
Copy link
Owner

pxlrbt commented Nov 3, 2022

Did you select the Edit/View entry first before searching? The navigation is nested.

@studiowizjo
Copy link

studiowizjo commented Nov 11, 2022

I got the same. At first I select "Website - Edit" and then records on list shows only when I type letters containing "website":

Zrzut ekranu 2022-11-11 10

If I translate it in my WebsiteResource:

protected static ?string $label = 'strona';

then it searchs in my translated word: "strona" and presents it in search results.

I don`t see anything special in my resource, which could be related.

Thought it might make a difference to not use Model::unguard(); and list attributes in $fillable in model, but that didn't help either.

@pxlrbt
Copy link
Owner

pxlrbt commented Nov 11, 2022

Thanks @studiowizjo. I just checked it and confirm that this is a bug. I think it used to work, so maybe there was a change in Filament that broke this. I will look into this.

@pxlrbt pxlrbt added the bug Something isn't working label Nov 11, 2022
@pxlrbt pxlrbt self-assigned this Nov 11, 2022
@michabbb
Copy link

i would be happy as will, if you could fix that 😏

@pxlrbt
Copy link
Owner

pxlrbt commented Jan 30, 2023

@michabbb Are you on the latest version? I think this should have been fixed with v0.3.6. I just tested with the Filament Demo and it works.

@michabbb
Copy link

@pxlrbt pardon, a few minutes ago i found out that i had to set $recordTitleAttribute in my resource to get any findings 😏

@pxlrbt
Copy link
Owner

pxlrbt commented Jan 30, 2023

I updated the readme to explain this.

@pxlrbt pxlrbt closed this as completed Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants