diff --git a/app/Utilities/Updater.php b/app/Utilities/Updater.php index c4080dbf6..ad1309f14 100644 --- a/app/Utilities/Updater.php +++ b/app/Utilities/Updater.php @@ -191,7 +191,7 @@ class Updater ModelHistory::create([ 'company_id' => session('company_id'), 'module_id' => $model->id, - 'category' => $module->get('category'), + 'category' => $module->get('category', 'payment-method'), 'version' => $version, 'description' => trans('modules.history.updated', ['module' => $module->get('alias')]), ]); diff --git a/overrides/akaunting/module/Commands/DeleteCommand.php b/overrides/akaunting/module/Commands/DeleteCommand.php index ede0e237a..a7868b456 100644 --- a/overrides/akaunting/module/Commands/DeleteCommand.php +++ b/overrides/akaunting/module/Commands/DeleteCommand.php @@ -52,7 +52,7 @@ class DeleteCommand extends Command $data = [ 'company_id' => $company_id, 'module_id' => $model->id, - 'category' => $module->get('category'), + 'category' => $module->get('category', 'payment-method'), 'version' => $module->get('version'), 'description' => trans('modules.deleted', ['module' => $module->get('alias')]), ]; diff --git a/overrides/akaunting/module/Commands/DisableCommand.php b/overrides/akaunting/module/Commands/DisableCommand.php index 50c23831d..74280c81e 100644 --- a/overrides/akaunting/module/Commands/DisableCommand.php +++ b/overrides/akaunting/module/Commands/DisableCommand.php @@ -51,7 +51,7 @@ class DisableCommand extends Command $data = [ 'company_id' => $company_id, 'module_id' => $model->id, - 'category' => $module->get('category'), + 'category' => $module->get('category', 'payment-method'), 'version' => $module->get('version'), 'description' => trans('modules.disabled', ['module' => $module->get('alias')]), ]; diff --git a/overrides/akaunting/module/Commands/EnableCommand.php b/overrides/akaunting/module/Commands/EnableCommand.php index 2ad7d772a..72d0fe080 100644 --- a/overrides/akaunting/module/Commands/EnableCommand.php +++ b/overrides/akaunting/module/Commands/EnableCommand.php @@ -51,7 +51,7 @@ class EnableCommand extends Command $data = [ 'company_id' => $company_id, 'module_id' => $model->id, - 'category' => $module->get('category'), + 'category' => $module->get('category', 'payment-method'), 'version' => $module->get('version'), 'description' => trans('modules.enabled', ['module' => $module->get('alias')]), ]; diff --git a/overrides/akaunting/module/Commands/InstallCommand.php b/overrides/akaunting/module/Commands/InstallCommand.php index 3506a03c3..01c5ed62f 100644 --- a/overrides/akaunting/module/Commands/InstallCommand.php +++ b/overrides/akaunting/module/Commands/InstallCommand.php @@ -53,7 +53,7 @@ class InstallCommand extends Command $data = [ 'company_id' => $company_id, 'module_id' => $model->id, - 'category' => $module->get('category'), + 'category' => $module->get('category', 'payment-method'), 'version' => $module->get('version'), 'description' => trans('modules.installed', ['module' => $module->get('alias')]), ];