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

Admin visiting non-existent enterprise raises error #13193

Open
mkllnk opened this issue Mar 5, 2025 · 2 comments · May be fixed by #13224
Open

Admin visiting non-existent enterprise raises error #13193

mkllnk opened this issue Mar 5, 2025 · 2 comments · May be fixed by #13224
Assignees
Labels
bug-s5 We can live with it... Few users are impacted. bugsnag

Comments

@mkllnk
Copy link
Member

mkllnk commented Mar 5, 2025

Error in Open Food Network (Rails)

NoMethodError in admin/enterprises#edit
undefined method `payment_methods' for nil:NilClass

  enterprise_payment_methods = @enterprise.payment_methods.to_a
                                          ^^^^^^^^^^^^^^^^

View on Bugsnag

Stacktrace

app/controllers/admin/enterprises_controller.rb:220 - load_methods_and_fees

View full stacktrace

Created by Maikel via Bugsnag

@mkllnk mkllnk added the bugsnag label Mar 5, 2025
@github-project-automation github-project-automation bot moved this to All the things 💤 in OFN Delivery board Mar 5, 2025
@github-project-automation github-project-automation bot moved this to To triage (By the maintainers) in Welcome New Developers! Mar 5, 2025
@mkllnk mkllnk moved this from To triage (By the maintainers) to Backend Easy in Welcome New Developers! Mar 5, 2025
@mkllnk mkllnk added the bug-s5 We can live with it... Few users are impacted. label Mar 5, 2025
@Tresor11
Copy link

I'm happy to pick this up

@sigmundpetersen sigmundpetersen moved this from Backend Easy to In progress in Welcome New Developers! Mar 21, 2025
@sigmundpetersen sigmundpetersen moved this from All the things 💤 to In Progress ⚙ in OFN Delivery board Mar 21, 2025
@sigmundpetersen
Copy link
Contributor

Hi @Tresor11 thank you 🙏 I have assigned you

@Tresor11 Tresor11 linked a pull request Mar 21, 2025 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s5 We can live with it... Few users are impacted. bugsnag
Projects
Status: In Progress ⚙
Status: In progress
Development

Successfully merging a pull request may close this issue.

3 participants