mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 19:01:58 +00:00
Drop the type for now, fixes https://github.com/orgs/firefly-iii/discussions/8750
This commit is contained in:
@@ -72,6 +72,11 @@ class UpdateController extends Controller
|
|||||||
app('log')->debug('Now in update routine for transaction group!');
|
app('log')->debug('Now in update routine for transaction group!');
|
||||||
$data = $request->getAll();
|
$data = $request->getAll();
|
||||||
|
|
||||||
|
# Fixes 8750.
|
||||||
|
foreach($data['transactions'] as $index => $info) {
|
||||||
|
unset($data['transactions'][$index]['type']);
|
||||||
|
}
|
||||||
|
|
||||||
$transactionGroup = $this->groupRepository->update($transactionGroup, $data);
|
$transactionGroup = $this->groupRepository->update($transactionGroup, $data);
|
||||||
$manager = $this->getManager();
|
$manager = $this->getManager();
|
||||||
|
|
||||||
|
@@ -44,6 +44,7 @@ use FireflyIII\Repositories\UserGroups\Currency\CurrencyRepositoryInterface;
|
|||||||
use FireflyIII\Services\Internal\Support\JournalServiceTrait;
|
use FireflyIII\Services\Internal\Support\JournalServiceTrait;
|
||||||
use FireflyIII\Support\NullArrayObject;
|
use FireflyIII\Support\NullArrayObject;
|
||||||
use FireflyIII\Validation\AccountValidator;
|
use FireflyIII\Validation\AccountValidator;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to centralise code that updates a journal given the input by system.
|
* Class to centralise code that updates a journal given the input by system.
|
||||||
@@ -187,7 +188,7 @@ class JournalUpdateService
|
|||||||
|
|
||||||
// make new account validator.
|
// make new account validator.
|
||||||
$expectedType = $this->getExpectedType();
|
$expectedType = $this->getExpectedType();
|
||||||
app('log')->debug(sprintf('Expected type (new or unchanged) is %s', $expectedType));
|
app('log')->debug(sprintf('(a) Expected type (new or unchanged) is %s', $expectedType));
|
||||||
|
|
||||||
// make a new validator.
|
// make a new validator.
|
||||||
/** @var AccountValidator $validator */
|
/** @var AccountValidator $validator */
|
||||||
@@ -273,7 +274,7 @@ class JournalUpdateService
|
|||||||
|
|
||||||
// make new account validator.
|
// make new account validator.
|
||||||
$expectedType = $this->getExpectedType();
|
$expectedType = $this->getExpectedType();
|
||||||
app('log')->debug(sprintf('Expected type (new or unchanged) is %s', $expectedType));
|
app('log')->debug(sprintf('(b) Expected type (new or unchanged) is %s', $expectedType));
|
||||||
|
|
||||||
// make a new validator.
|
// make a new validator.
|
||||||
/** @var AccountValidator $validator */
|
/** @var AccountValidator $validator */
|
||||||
@@ -404,7 +405,7 @@ class JournalUpdateService
|
|||||||
|
|
||||||
// make new account validator.
|
// make new account validator.
|
||||||
$expectedType = $this->getExpectedType();
|
$expectedType = $this->getExpectedType();
|
||||||
app('log')->debug(sprintf('Expected type (new or unchanged) is %s', $expectedType));
|
app('log')->debug(sprintf('(c) Expected type (new or unchanged) is %s', $expectedType));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $this->getAccount($expectedType, 'destination', $destInfo);
|
$result = $this->getAccount($expectedType, 'destination', $destInfo);
|
||||||
|
Reference in New Issue
Block a user