You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't open the kanban board without getting an exception when the view renders if I use Model::preventAccessingMissingAttributes(). The crash occurs in resources/views/kanban-record.blade.php due to calling the blade directive @if($record->just_updated) checking if just_updated exists on the model or not.
How to reproduce the bug
Model::preventAccessingMissingAttributes() is a setting that makes sure that one can't use attributes that don't exist on a model, this of course helps prevent bugs. Call the method in your AppServiceProvider.
Package Version
2.2.0
PHP Version
8.3.2-1+ubuntu22.04.1+deb.sury.org+1
Laravel Version
10.45.1
Which operating systems does with happen with?
No response
Which browsers does with happen with?
No response
Notes
The bug is easily fixed by using isset in the @if condition rather than attempting to access the property directly.
The text was updated successfully, but these errors were encountered:
@mokhosh Thank you for addressing the issue so quickly! I was able to work around it by simple adding a property to the model called just_updated and setting it to false, but I really appreciate you taking a look at it right away :)
What happened?
I can't open the kanban board without getting an exception when the view renders if I use
Model::preventAccessingMissingAttributes()
. The crash occurs inresources/views/kanban-record.blade.php
due to calling the blade directive@if($record->just_updated)
checking ifjust_updated
exists on the model or not.How to reproduce the bug
Model::preventAccessingMissingAttributes()
is a setting that makes sure that one can't use attributes that don't exist on a model, this of course helps prevent bugs. Call the method in yourAppServiceProvider
.Package Version
2.2.0
PHP Version
8.3.2-1+ubuntu22.04.1+deb.sury.org+1
Laravel Version
10.45.1
Which operating systems does with happen with?
No response
Which browsers does with happen with?
No response
Notes
The bug is easily fixed by using
isset
in the@if
condition rather than attempting to access the property directly.The text was updated successfully, but these errors were encountered: