Merge branch 'akaunting:master' into master

This commit is contained in:
Burak Civan 2022-12-08 10:08:26 +03:00 committed by GitHub
commit 92db87bedd
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) {