fixes for preview (#3548)

This commit is contained in:
David Bomba 2020-03-26 14:46:56 +11:00 committed by GitHub
parent 6a7079b0be
commit 9fb609faca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,10 @@ class PreviewController extends BaseController
{
if (request()->has('entity') &&
request()->has('entity_id') &&
strlen(request()->input('entity')) > 1 &&
strlen(request()->input('entity_id')) > 1 &&
request()->has('body')) {
$design_object = json_decode(json_encode(request()->input('design')));
if (!is_object($design_object)) {