Merge pull request #6399 from turbo124/v5-develop

Logging for Preview
This commit is contained in:
David Bomba 2021-08-05 21:58:24 +10:00 committed by GitHub
commit 90e1743ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,11 +206,14 @@ class PreviewController extends BaseController
info("company id = " . auth()->user()->company()->id);
$entity_obj = $class::on(auth()->user()->company()->db)
->withTrashed()
->where('id', $this->decodePrimaryKey($request->input('entity_id')))
->where('company_id', auth()->user()->company()->id)
->withTrashed()
->first();
if($entity_obj)
info("found a valid entity object");
$entity_obj = $repo->save($request->all(), $entity_obj);
}