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:
parent
199a0aed55
commit
e250273787
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user