mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 00:24:36 -04:00
Minor fixes for live preview
This commit is contained in:
parent
56446fdd69
commit
ee78101d5a
@ -200,13 +200,13 @@ class PreviewController extends BaseController
|
|||||||
|
|
||||||
if($request->has('entity_id')){
|
if($request->has('entity_id')){
|
||||||
|
|
||||||
$entity_obj = $class::on(auth()->user()->company()->db)
|
// $entity_obj = $class::on(auth()->user()->company()->db)
|
||||||
->withTrashed()
|
// ->withTrashed()
|
||||||
->where('id', $this->decodePrimaryKey($request->input('entity_id')))
|
// ->where('id', $this->decodePrimaryKey($request->input('entity_id')))
|
||||||
->where('company_id', auth()->user()->company()->id)
|
// ->where('company_id', auth()->user()->company()->id)
|
||||||
->first();
|
// ->first();
|
||||||
|
|
||||||
$entity_obj = $repo->save($request->all(), $entity_obj);
|
$entity_obj = $repo->save($request->all(), $factory);
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user