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

Custom UserResource messes with package default UserResource #57

Closed
jonagoldman opened this issue Mar 3, 2021 · 1 comment
Closed
Assignees
Labels
bug Something isn't working confirmed

Comments

@jonagoldman
Copy link

Describe the bug
Creating a custom UserResource messes with the default UserResource

To reproduce
Steps to reproduce the behavior:

  1. Create a resource called UserResource with a custom User in the $model property
  2. Customize the form() method to return only the name field
  3. Click on the authenticated user and go to Manage Users
  4. Click on Create
  5. See that the form shown is the one we just customized instead of the Filament user

Expected behavior
The package UserResource should be used for for internal admin users.

Screenshots
Screenshot from 2021-03-02 22-10-08

Context

  • Browser: Chrome
  • Server OS: Ubuntu 20.04
  • PHP version: 8.0
@jonagoldman jonagoldman added the bug Something isn't working label Mar 3, 2021
@danharrin
Copy link
Member

Thanks! Fixed in v1.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed
Projects
None yet
Development

No branches or pull requests

2 participants