mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-11 15:34:21 -04:00
Fix for tests
This commit is contained in:
parent
9fa08046cf
commit
e9685c80b3
@ -65,9 +65,9 @@ class ProductRepository extends BaseRepository
|
||||
}
|
||||
|
||||
$product->fill($data);
|
||||
$product->product_key = trim($data['product_key']);
|
||||
$product->notes = trim($data['notes']);
|
||||
$product->cost = Utils::parseFloat($data['cost']);
|
||||
$product->product_key = isset($data['product_key']) ? trim($data['product_key']) : '';
|
||||
$product->notes = isset($data['notes']) ? trim($data['notes']) : '';
|
||||
$product->cost = isset($data['cost']) ? Utils::parseFloat($data['cost']) : 0;
|
||||
$product->save();
|
||||
|
||||
return $product;
|
||||
|
Loading…
x
Reference in New Issue
Block a user