Fix for tests
This commit is contained in:
parent
9fa08046cf
commit
e9685c80b3
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue