1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for displaying defaults on preview

This commit is contained in:
David Bomba 2021-09-29 21:42:25 +10:00
parent 199a0aed55
commit e250273787

View File

@ -212,7 +212,10 @@ class PreviewController extends BaseController
} }
$entity_obj = $repo->save($request->all(), $entity_obj); $entity_obj = $repo->save($request->all(), $entity_obj);
$entity_obj->service()->fillDefaults()->save();
if(!$request->has('entity_id'))
$entity_obj->service()->fillDefaults()->save();
$entity_obj->load('client'); $entity_obj->load('client');
App::forgetInstance('translator'); App::forgetInstance('translator');