File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,10 @@ public static function postCreate($request)
281281
282282 $ relation = vh_content_relations_by_name ($ field ['meta ' ]['type ' ]);
283283
284- if ($ relation && isset ($ relation ['namespace ' ]) && $ relation ['namespace ' ]){
284+ if ($ relation && isset ($ relation ['namespace ' ])
285+ && $ relation ['namespace ' ]
286+ && $ field && isset ($ field ['content ' ])
287+ && is_array ($ field ['content ' ])){
285288 foreach ($ field ['content ' ] as $ id ){
286289 $ data = [
287290 'relatable_id ' => $ id ,
@@ -704,6 +707,8 @@ public static function getFormGroupsTest(Content $content,
704707
705708 $ content_val = ContentFormField::getContentAsset ($ content_val , $ field ->type ->slug );
706709
710+ $ arr_group [$ i ][$ key ]['fields ' ][$ y ]['content ' ] = $ content_val ;
711+
707712 if (is_string ($ content_val )){
708713 $ arr_group [$ i ][$ key ]['fields ' ][$ y ]['content ' ] = vh_translate_dynamic_strings (
709714 $ content_val
You can’t perform that action at this time.
0 commit comments