mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Refactor for bank transactions
This commit is contained in:
parent
c62f621dc0
commit
24fb32768f
@ -58,13 +58,13 @@ class UpdateBankTransactionRequest extends Request
|
||||
{
|
||||
$input = $this->all();
|
||||
|
||||
if(array_key_exists('vendor_id', $input))
|
||||
if(array_key_exists('vendor_id', $input) && strlen($input['vendor_id']) > 1)
|
||||
$input['vendor_id'] = $this->decodePrimaryKey($input['vendor_id']);
|
||||
|
||||
if(array_key_exists('expense_id', $input))
|
||||
if(array_key_exists('expense_id', $input) && strlen($input['expense_id']) > 1)
|
||||
$input['expense_id'] = $this->decodePrimaryKey($input['expense_id']);
|
||||
|
||||
if(array_key_exists('ninja_category_id', $input))
|
||||
if(array_key_exists('ninja_category_id', $input) && strlen($input['ninja_category_id']) > 1)
|
||||
$input['ninja_category_id'] = $this->decodePrimaryKey($input['ninja_category_id']);
|
||||
|
||||
$this->replace($input);
|
||||
|
Loading…
Reference in New Issue
Block a user