mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 09:44:37 -04:00
fixes for preview (#3548)
This commit is contained in:
parent
6a7079b0be
commit
9fb609faca
@ -89,7 +89,10 @@ class PreviewController extends BaseController
|
|||||||
{
|
{
|
||||||
if (request()->has('entity') &&
|
if (request()->has('entity') &&
|
||||||
request()->has('entity_id') &&
|
request()->has('entity_id') &&
|
||||||
|
strlen(request()->input('entity')) > 1 &&
|
||||||
|
strlen(request()->input('entity_id')) > 1 &&
|
||||||
request()->has('body')) {
|
request()->has('body')) {
|
||||||
|
|
||||||
$design_object = json_decode(json_encode(request()->input('design')));
|
$design_object = json_decode(json_encode(request()->input('design')));
|
||||||
|
|
||||||
if (!is_object($design_object)) {
|
if (!is_object($design_object)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user