diff --git a/app/Api/V1/Controllers/Models/Transaction/UpdateController.php b/app/Api/V1/Controllers/Models/Transaction/UpdateController.php index 5f9946b44a..e25a21199c 100644 --- a/app/Api/V1/Controllers/Models/Transaction/UpdateController.php +++ b/app/Api/V1/Controllers/Models/Transaction/UpdateController.php @@ -72,6 +72,11 @@ class UpdateController extends Controller app('log')->debug('Now in update routine for transaction group!'); $data = $request->getAll(); + # Fixes 8750. + foreach($data['transactions'] as $index => $info) { + unset($data['transactions'][$index]['type']); + } + $transactionGroup = $this->groupRepository->update($transactionGroup, $data); $manager = $this->getManager(); diff --git a/app/Services/Internal/Update/JournalUpdateService.php b/app/Services/Internal/Update/JournalUpdateService.php index b6ecdc31a6..e1671d0311 100644 --- a/app/Services/Internal/Update/JournalUpdateService.php +++ b/app/Services/Internal/Update/JournalUpdateService.php @@ -44,6 +44,7 @@ use FireflyIII\Repositories\UserGroups\Currency\CurrencyRepositoryInterface; use FireflyIII\Services\Internal\Support\JournalServiceTrait; use FireflyIII\Support\NullArrayObject; use FireflyIII\Validation\AccountValidator; +use Illuminate\Support\Facades\Log; /** * Class to centralise code that updates a journal given the input by system. @@ -187,7 +188,7 @@ class JournalUpdateService // make new account validator. $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. /** @var AccountValidator $validator */ @@ -273,7 +274,7 @@ class JournalUpdateService // make new account validator. $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. /** @var AccountValidator $validator */ @@ -404,7 +405,7 @@ class JournalUpdateService // make new account validator. $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 { $result = $this->getAccount($expectedType, 'destination', $destInfo);