mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes for request forms
This commit is contained in:
parent
49a079714f
commit
069568da6e
@ -125,6 +125,10 @@ class Request extends FormRequest
|
||||
$input['company_gateway_id'] = $this->decodePrimaryKey($input['company_gateway_id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('category_id', $input) && is_string($input['category_id'])) {
|
||||
$input['category_id'] = $this->decodePrimaryKey($input['category_id']);
|
||||
}
|
||||
|
||||
if (isset($input['client_contacts'])) {
|
||||
foreach ($input['client_contacts'] as $key => $contact) {
|
||||
if (! array_key_exists('send_email', $contact) || ! array_key_exists('id', $contact)) {
|
||||
|
@ -164,6 +164,5 @@ class BankTransactionRule extends BaseModel
|
||||
{
|
||||
return $this->belongsTo(ExpenseCategory::class)->withTrashed();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -29,6 +29,7 @@ class BankTransactionRuleRepository extends BaseRepository
|
||||
$bank_transaction_rule->save();
|
||||
|
||||
return $bank_transaction_rule;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user