mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Auto commit for release 'develop' on 2024-05-18
This commit is contained in:
@@ -55,8 +55,9 @@ class AccountController extends Controller
|
||||
$userGroup = $this->validateUserGroup($request);
|
||||
$this->repository = app(AccountRepositoryInterface::class);
|
||||
$this->repository->setUserGroup($userGroup);
|
||||
$this->default = app('amount')->getDefaultCurrency();
|
||||
$this->converter = app(ExchangeRateConverter::class);
|
||||
$this->default = app('amount')->getDefaultCurrency();
|
||||
$this->converter = app(ExchangeRateConverter::class);
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
);
|
||||
|
@@ -64,13 +64,13 @@ class CategoryController extends Controller
|
||||
public function categories(AutocompleteRequest $request): JsonResponse
|
||||
{
|
||||
$queryParameters = $request->getParameters();
|
||||
$result = $this->repository->searchCategory($queryParameters['query'], $queryParameters['size']);
|
||||
$filtered = $result->map(
|
||||
$result = $this->repository->searchCategory($queryParameters['query'], $queryParameters['size']);
|
||||
$filtered = $result->map(
|
||||
static function (Category $item) {
|
||||
return [
|
||||
'id' => (string)$item->id,
|
||||
'id' => (string)$item->id,
|
||||
'title' => $item->name,
|
||||
'meta' => [],
|
||||
'meta' => [],
|
||||
];
|
||||
}
|
||||
);
|
||||
|
@@ -67,8 +67,8 @@ class TransactionController extends Controller
|
||||
$result = $this->repository->searchJournalDescriptions($queryParameters['query'], $queryParameters['size']);
|
||||
|
||||
// limit and unique
|
||||
$filtered = $result->unique('description');
|
||||
$array = [];
|
||||
$filtered = $result->unique('description');
|
||||
$array = [];
|
||||
|
||||
/** @var TransactionJournal $journal */
|
||||
foreach ($filtered as $journal) {
|
||||
|
@@ -73,28 +73,28 @@ class AutocompleteRequest extends FormRequest
|
||||
];
|
||||
}
|
||||
|
||||
// public function getData(): array
|
||||
// {
|
||||
//
|
||||
// return [];
|
||||
// $types = $this->convertString('types');
|
||||
// $array = [];
|
||||
// if ('' !== $types) {
|
||||
// $array = explode(',', $types);
|
||||
// }
|
||||
// $limit = $this->convertInteger('limit');
|
||||
// $limit = 0 === $limit ? 10 : $limit;
|
||||
//
|
||||
// // remove 'initial balance' and another from allowed types. its internal
|
||||
// $array = array_diff($array, [AccountType::INITIAL_BALANCE, AccountType::RECONCILIATION]);
|
||||
//
|
||||
// return [
|
||||
// 'types' => $array,
|
||||
// 'query' => $this->convertString('query'),
|
||||
// 'date' => $this->getCarbonDate('date'),
|
||||
// 'limit' => $limit,
|
||||
// ];
|
||||
// }
|
||||
// public function getData(): array
|
||||
// {
|
||||
//
|
||||
// return [];
|
||||
// $types = $this->convertString('types');
|
||||
// $array = [];
|
||||
// if ('' !== $types) {
|
||||
// $array = explode(',', $types);
|
||||
// }
|
||||
// $limit = $this->convertInteger('limit');
|
||||
// $limit = 0 === $limit ? 10 : $limit;
|
||||
//
|
||||
// // remove 'initial balance' and another from allowed types. its internal
|
||||
// $array = array_diff($array, [AccountType::INITIAL_BALANCE, AccountType::RECONCILIATION]);
|
||||
//
|
||||
// return [
|
||||
// 'types' => $array,
|
||||
// 'query' => $this->convertString('query'),
|
||||
// 'date' => $this->getCarbonDate('date'),
|
||||
// 'limit' => $limit,
|
||||
// ];
|
||||
// }
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user