mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for tests
This commit is contained in:
parent
261a2e0ab6
commit
4462e3f97b
@ -62,7 +62,7 @@ class StoreExpenseRequest extends Request
|
||||
$input['currency_id'] = (string)auth()->user()->company()->settings->currency_id;
|
||||
}
|
||||
|
||||
if (! array_key_exists('purchase_order_id', $input) || strlen($input['purchase_order_id']) == 0) {
|
||||
if (array_key_exists('purchase_order_id', $input) && is_string($input['purchase_order_id'])) {
|
||||
$input['purchase_order_id'] = $this->decodePrimaryKey($input['purchase_order_id']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user