Skip to content

Firefly III: a personal finances manager

Fix small issues reported over mail and from the demo site.

James Cole8e6ff3ceaf08
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index c80a508636..06dbd66ebc 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -13,6 +13,8 @@ If it feels necessary to open an issue first, please do so, before you open a PR
See also: https://docs.firefly-iii.org/explanation/support/#contributing-code
-->
+
+@JC5
This PR fixes issue # (if relevant).
diff --git a/app/Listeners/Test/SendsTestNotification.php b/app/Listeners/Test/SendsTestNotification.php
index 42eac938de..fb7234a2fc 100644
--- a/app/Listeners/Test/SendsTestNotification.php
+++ b/app/Listeners/Test/SendsTestNotification.php
@@ -81,7 +81,7 @@ class SendsTestNotification
return;
}
Log::debug(sprintf('Will send %s as a notification.', $class));
- NotificationSender::send($event->user, new $class());
+ NotificationSender::send($event->$type, new $class());
Log::debug(sprintf('If you see no errors above this line, test notification was sent over channel "%s"', $event->channel));
}
}
diff --git a/app/Support/Models/AvailableBudgetCalculator.php b/app/Support/Models/AvailableBudgetCalculator.php
index 909bc0a050..ca78766e22 100644
--- a/app/Support/Models/AvailableBudgetCalculator.php
+++ b/app/Support/Models/AvailableBudgetCalculator.php
@@ -143,7 +143,6 @@ class AvailableBudgetCalculator
$availableBudget = $this->abRepository->find($this->currency, $start, $end);
$availableBudgets = $this->abRepository->findInRange($this->currency, $start, $end);
- Log::debug(sprintf('Found #%d', $availableBudget->id));
foreach ($availableBudgets as $item) {
Log::debug(sprintf(
'findInRange found available budget #%d (%s - %s), will update it.',