File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33use Illuminate \Support \Facades \DB ;
44use Illuminate \Support \Str ;
5+ use VaahCms \Modules \Cms \Models \ContentType ;
56use VaahCms \Modules \Cms \Models \ContentTypeBase ;
67use VaahCms \Modules \Cms \Models \Content ;
78use WebReinvent \VaahCms \Models \ThemeTemplate ;
@@ -235,8 +236,7 @@ public static function contentTypes($file_path)
235236 ->where ('slug ' , $ content_type ['content ' ]['slug ' ])
236237 ->first ();
237238
238- $ stored = ContentTypeBase::find ($ stored ->id );
239-
239+ $ stored = ContentType::find ($ stored ->id );
240240
241241 //template groups
242242 ContentTypeBase::syncWithFormGroups ($ stored , $ content_type ['groups ' ]);
Original file line number Diff line number Diff line change @@ -339,9 +339,10 @@ public static function getItemWithRelations($id)
339339
340340 }
341341 //-------------------------------------------------
342- public static function syncWithFormGroups (ContentTypeBase $ content_type , $ groups_array )
342+ public static function syncWithFormGroups (ContentType $ content_type , $ groups_array )
343343 {
344344
345+
345346 $ stored_groups = $ content_type ->groups ()->get ()->pluck ('slug ' ,'id ' )->toArray ();
346347
347348 $ input_groups = collect ($ groups_array )->pluck ('slug ' )->toArray ();
You can’t perform that action at this time.
0 commit comments