mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
Force line items to have a default type_id
This commit is contained in:
parent
9c9de4c49c
commit
9ec7a48eae
@ -55,6 +55,10 @@ trait CleanLineItems
|
|||||||
//always cast the value!
|
//always cast the value!
|
||||||
$item[$key] = BaseSettings::castAttribute(InvoiceItem::$casts[$key], $item[$key]);
|
$item[$key] = BaseSettings::castAttribute(InvoiceItem::$casts[$key], $item[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($item['type_id'] == '0')
|
||||||
|
$item['type_id'] ='1';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('id', $item)) {
|
if (array_key_exists('id', $item)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user