File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ private function importEntries()
8484 ->collection ($ model ->collection )
8585 ->data ($ model ->data )
8686 ->blueprint ($ model ->blueprint )
87+ ->template ($ model ->data ['template ' ] ?? null )
8788 ->published ($ model ->published );
8889
8990 if (in_array (HasUuids::class, class_uses_recursive ($ model ))) {
@@ -113,6 +114,7 @@ private function importEntries()
113114 ->collection ($ model ->collection )
114115 ->data ($ model ->data )
115116 ->blueprint ($ model ->data ['blueprint ' ] ?? null )
117+ ->template ($ model ->data ['template ' ] ?? null )
116118 ->published ($ model ->published );
117119
118120 if ($ model ->date && $ entry ->collection ()->dated ()) {
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public static function fromModel(Model $model)
2828 ->collection ($ model ->collection )
2929 ->data ($ data )
3030 ->blueprint ($ model ->blueprint ?? $ model ->data ['blueprint ' ] ?? null )
31+ ->template ($ model ->data ['template ' ] ?? null )
3132 ->published ($ model ->published )
3233 ->model ($ model );
3334
You can’t perform that action at this time.
0 commit comments