From fbab17f111f2ae86d6c5c4e949d5f76e561154b9 Mon Sep 17 00:00:00 2001 From: Anthony Protano Date: Fri, 11 Aug 2023 17:05:37 -0400 Subject: [PATCH] More Backpack v5 changes --- .../views/crud/form/page_editor_dynamic_content.blade.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/resources/views/crud/form/page_editor_dynamic_content.blade.php b/src/resources/views/crud/form/page_editor_dynamic_content.blade.php index 9cb0442..86cb702 100644 --- a/src/resources/views/crud/form/page_editor_dynamic_content.blade.php +++ b/src/resources/views/crud/form/page_editor_dynamic_content.blade.php @@ -49,10 +49,8 @@ ]); @endphp - @include('crud::fields.' . $data['type'], [ - 'field' => $field, - 'crud' => $crud, - ]) + + @include($crud->getFirstFieldView($field['type'], $field['view_namespace'] ?? false), $field) @endforeach