Skip to content

Firefly III: a personal finances manager

Merge branch 'develop' into 5.8-dev

James Colea702662e88d9
diff --cc app/Http/Controllers/Transaction/DeleteController.php
index 7e36632269,b023d78317..a6cd7d7cfe
--- a/app/Http/Controllers/Transaction/DeleteController.php
+++ b/app/Http/Controllers/Transaction/DeleteController.php
@@@ -131,11 -132,8 +132,8 @@@ class DeleteController extends Controll
$this->repository->destroy($group);
- app('preferences')->mark();
-
-
/** @var Account $account */
- foreach($accounts as $account) {
+ foreach ($accounts as $account) {
Log::debug(sprintf('Now going to trigger updated account event for account #%d', $account->id));
event(new UpdatedAccount($account));
}
diff --cc app/Services/Internal/Destroy/TransactionGroupDestroyService.php
index 2edc6840d6,9e7c9d0717..886118eeaf
--- a/app/Services/Internal/Destroy/TransactionGroupDestroyService.php
+++ b/app/Services/Internal/Destroy/TransactionGroupDestroyService.php
@@@ -45,8 -47,11 +46,10 @@@ class TransactionGroupDestroyServic
}
try {
$transactionGroup->delete();
- } catch (Exception $e) { // @phpstan-ignore-line
+ } catch (Exception $e) {
// @ignoreException
}
+ // trigger just after destruction
+ event(new DestroyedTransactionGroup($transactionGroup));
}
-
}