-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Possible alternative to fixing #13296 - custom report failing when th… #13347
Conversation
…e model is busted Related: #13297 Signed-off-by: snipe <snipe@snipe.net>
PR Summary
|
Just tested this and the outcome is the same as with my fix. I think this works better for the reasons we already discuss, so I'm gonna proceed to close the other one. |
@jayavman are you able to pull this branch and tell me if this works? |
hey @snipe no it doesnt |
[2023-07-21 14:35:18] production.ERROR: Error: Call to a member function belongsTo() on null in /home/fredons/public_html/asset/app/Models/Asset.php:393 |
@jayavman That should not happen with this branch, since |
Snipe-IT version |
@jayavman you need to pull down this specific branch though, not master or develop. Running the upgrader will pull from master. |
You can try |
Never mind, you can try |
Git is installed.
|
Just tested and it worked fine. The report came through |
Excellent - I’ll get that merged into master tonight or tomorrow. Thanks for testing! |
I’m still curious how your data got in that shape in the first place tho. @uberbrady and I were just discussing this over dinner. The only scenario we can come up with is:
But honestly, we’re just not sure. If there’s anything you can think of that might explain how your asset(s) might have gotten donked, we’d love to see if we can prevent that in the future. |
Just PRing this up in case anyone wants it.
This is an alt approach to fixing #13296 (versus #13297)