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 2025-03-14
This commit is contained in:
@@ -31,15 +31,15 @@ trait ValidatesBulkTransactionQuery
|
||||
{
|
||||
protected function validateTransactionQuery(Validator $validator): void
|
||||
{
|
||||
$data = $validator->getData();
|
||||
$data = $validator->getData();
|
||||
// assumption is all validation has already taken place and the query key exists.
|
||||
$query =$data['query'] ?? '[]';
|
||||
$json = json_decode($query, true, 8, JSON_THROW_ON_ERROR);
|
||||
$query = $data['query'] ?? '[]';
|
||||
$json = json_decode($query, true, 8, JSON_THROW_ON_ERROR);
|
||||
|
||||
if (
|
||||
array_key_exists('where', $json) &&
|
||||
array_key_exists('update', $json) &&
|
||||
array_key_exists('account_id', $json['where']) && array_key_exists('account_id', $json['update'])
|
||||
array_key_exists('where', $json)
|
||||
&& array_key_exists('update', $json)
|
||||
&& array_key_exists('account_id', $json['where']) && array_key_exists('account_id', $json['update'])
|
||||
) {
|
||||
// find both accounts, must be same type.
|
||||
// already validated: belongs to this user.
|
||||
|
Reference in New Issue
Block a user