Fixes for tests
This commit is contained in:
parent
261a2e0ab6
commit
4462e3f97b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue