-
Notifications
You must be signed in to change notification settings - Fork 916
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
[4.2][Bug] Error in text column in Permissions #3984
Comments
Ok so here's a weird one. If you But it turns out the problem... is a DB entry. Backpack cannot echo out a table cell that says This is... WOW... @promatik I'll let you take a closer look at this too. Right now I was deep into something else, and it doesn't seem like this is a quick one, as I thought. |
Hi @tabacitu! Fix is here #4005. Basically; is_callable('logs') // true Because; $value = 'logs';
$value() // the same as;
logs() // returns an instance of \Illuminate\Log\LogManager All our columns have that new feature, to verify if if(is_callable($column['value'])) {
$column['value'] = $column['value']($entry);
} it should become; if($column['value'] instanceof \Closure) {
$column['value'] = $column['value']($entry);
} |
@promatik is better to check if it's a closure or check if it is a function and not string? I ask because in other places to avoid this error we check: Not sure if your solution covers it 100%, if it does, is indeed simpler, just want to make sure. Best, |
@pxpm good point, I can't see a way for this not to work, an inline function is always an instance of |
Bug report
What I did
Opened
Permissions
CRUD in 4.2What I expected to happen
Work
What happened
Not work 😅 Are you getting the same thing @promatik ?
What I've already tried to fix it
Nothing yet - currently deep into fixing other stuff.
Backpack, Laravel, PHP, DB version
4.2
The text was updated successfully, but these errors were encountered: