mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 18:30:55 -06:00
Merge branch 'release/5.6.8'
This commit is contained in:
commit
6044cffef3
@ -239,9 +239,6 @@ class GroupCollector implements GroupCollectorInterface
|
||||
{
|
||||
$result = $this->query->get($this->fields);
|
||||
|
||||
//Log::debug('Query in full');
|
||||
//$this->dumpQueryInLogs();
|
||||
|
||||
// now to parse this into an array.
|
||||
$collection = $this->parseArray($result);
|
||||
$this->total = $collection->count();
|
||||
|
@ -46,16 +46,11 @@ class StartFireflySession extends StartSession
|
||||
$safeUrl = app('steam')->getSafeUrl($url, route('index'));
|
||||
|
||||
if ($url !== $safeUrl) {
|
||||
//Log::debug(sprintf('storeCurrentUrl: converted "%s" to "%s", so will not use it.', $url, $safeUrl));
|
||||
return;
|
||||
}
|
||||
|
||||
if ('GET' === $request->method() && !$request->ajax()) {
|
||||
//Log::debug(sprintf('storeCurrentUrl: Redirect is now "%s".', $safeUrl));
|
||||
$session->setPreviousUrl($safeUrl);
|
||||
|
||||
// return;
|
||||
}
|
||||
//Log::debug(sprintf('storeCurrentUrl: Refuse to set "%s" as current URL.', $safeUrl));
|
||||
}
|
||||
}
|
||||
|
@ -217,26 +217,33 @@ class ParseDateString
|
||||
public function parseRange(string $date): array
|
||||
{
|
||||
// several types of range can be submitted
|
||||
$result = [
|
||||
'exact' => new Carbon('1984-09-17'),
|
||||
];
|
||||
switch (true) {
|
||||
default:
|
||||
break;
|
||||
case $this->isDayRange($date):
|
||||
return $this->parseDayRange($date);
|
||||
$result = $this->parseDayRange($date);
|
||||
break;
|
||||
case $this->isMonthRange($date):
|
||||
return $this->parseMonthRange($date);
|
||||
$result = $this->parseMonthRange($date);
|
||||
break;
|
||||
case $this->isYearRange($date):
|
||||
return $this->parseYearRange($date);
|
||||
$result = $this->parseYearRange($date);
|
||||
break;
|
||||
case $this->isMonthDayRange($date):
|
||||
return $this->parseMonthDayRange($date);
|
||||
$result = $this->parseMonthDayRange($date);
|
||||
break;
|
||||
case $this->isDayYearRange($date):
|
||||
return $this->parseDayYearRange($date);
|
||||
$result = $this->parseDayYearRange($date);
|
||||
break;
|
||||
case $this->isMonthYearRange($date):
|
||||
return $this->parseMonthYearRange($date);
|
||||
$result = $this->parseMonthYearRange($date);
|
||||
break;
|
||||
}
|
||||
|
||||
return [
|
||||
'exact' => new Carbon('1984-09-17'),
|
||||
];
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -190,7 +190,7 @@ trait TransactionValidation
|
||||
Log::debug('Will try to validate source account information.');
|
||||
$sourceId = (int)($transaction['source_id'] ?? 0);
|
||||
$sourceName = $transaction['source_name'] ?? null;
|
||||
$validSource = $accountValidator->validateSource($sourceId, $sourceName, null);
|
||||
$validSource = $accountValidator->validateSource(['id' => $sourceId, 'name' => $sourceName]);
|
||||
|
||||
// do something with result:
|
||||
if (false === $validSource) {
|
||||
|
@ -2,6 +2,11 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## 5.6.8 - 2021-12-19
|
||||
|
||||
### Fixed
|
||||
- Account validation was broken in some edge cases, making it impossible to edit transactions.
|
||||
|
||||
## 5.6.7 - 2021-12-19
|
||||
|
||||
### Changed
|
||||
|
@ -101,7 +101,7 @@ return [
|
||||
'webhooks' => true,
|
||||
'handle_debts' => true,
|
||||
],
|
||||
'version' => '5.6.7',
|
||||
'version' => '5.6.8',
|
||||
'api_version' => '1.5.5',
|
||||
'db_version' => 18,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user