mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 08:30:06 +00:00
Use different method for finding objects.
This commit is contained in:
@@ -57,8 +57,8 @@ class ReportFormRequest extends Request
|
||||
$collection = new Collection;
|
||||
if (is_array($set)) {
|
||||
foreach ($set as $accountId) {
|
||||
$account = $repository->find(intval($accountId));
|
||||
if (null !== $account->id) {
|
||||
$account = $repository->findNull(intval($accountId));
|
||||
if (null !== $account) {
|
||||
$collection->push($account);
|
||||
}
|
||||
}
|
||||
@@ -78,8 +78,8 @@ class ReportFormRequest extends Request
|
||||
$collection = new Collection;
|
||||
if (is_array($set)) {
|
||||
foreach ($set as $budgetId) {
|
||||
$budget = $repository->find(intval($budgetId));
|
||||
if (null !== $budget->id) {
|
||||
$budget = $repository->findNull(intval($budgetId));
|
||||
if (null !== $budget) {
|
||||
$collection->push($budget);
|
||||
}
|
||||
}
|
||||
@@ -99,8 +99,8 @@ class ReportFormRequest extends Request
|
||||
$collection = new Collection;
|
||||
if (is_array($set)) {
|
||||
foreach ($set as $categoryId) {
|
||||
$category = $repository->find(intval($categoryId));
|
||||
if (null !== $category->id) {
|
||||
$category = $repository->findNull(intval($categoryId));
|
||||
if (null !== $category) {
|
||||
$collection->push($category);
|
||||
}
|
||||
}
|
||||
@@ -142,8 +142,8 @@ class ReportFormRequest extends Request
|
||||
$collection = new Collection;
|
||||
if (is_array($set)) {
|
||||
foreach ($set as $accountId) {
|
||||
$account = $repository->find(intval($accountId));
|
||||
if (null !== $account->id) {
|
||||
$account = $repository->findNull(intval($accountId));
|
||||
if (null !== $account) {
|
||||
$collection->push($account);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user