table line action attribute issue

This commit is contained in:
Cihan Şentürk 2022-12-06 14:56:49 +03:00 committed by GitHub
parent cba5dd519c
commit 366482f39f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,14 +36,12 @@ class Actions extends Component
protected function getActions($actions)
{
if (! empty($actions)) {
return $actions;
}
if (empty($actions)) {
$actions = [];
$actions = [];
if ($this->model && ! empty($this->model->line_actions)) {
$actions = $this->model->line_actions;
if ($this->model && ! empty($this->model->line_actions)) {
$actions = $this->model->line_actions;
}
}
foreach ($actions as $key => $action) {