Skip to content

Commit

Permalink
Fix #8893
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Jun 15, 2024
1 parent 9667b8a commit dca899b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Validation/GroupValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ protected function preventUpdateReconciled(Validator $validator, TransactionGrou
'source_id', 'source_name', 'source_number', 'source_iban',
'destination_id', 'destination_name', 'destination_number', 'destination_iban',
];

// stop protesting when reconciliation is set to FALSE.

foreach ($data['transactions'] as $index => $row) {
if (false === ($row['reconciled'] ?? false)) {
continue;
}
foreach ($forbidden as $key) {
if (array_key_exists($key, $row)) {
$validator->errors()->add(
Expand Down

0 comments on commit dca899b

Please sign in to comment.