File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2525 },
2626 "require" : {
2727 "php" : " ^8.1" ,
28- "statamic/cms" : " ^5.16 "
28+ "statamic/cms" : " ^5.17 "
2929 },
3030 "require-dev" : {
3131 "doctrine/dbal" : " ^3.8" ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public static function fromModel(Model $model)
1818 ->collections ($ model ->settings ['collections ' ] ?? null )
1919 ->maxDepth ($ model ->settings ['max_depth ' ] ?? null )
2020 ->expectsRoot ($ model ->settings ['expects_root ' ] ?? false )
21+ ->canSelectAcrossSites ($ model ->settings ['select_across_sites ' ] ?? null )
2122 ->model ($ model );
2223 }
2324
@@ -39,6 +40,7 @@ public static function makeModelFromContract(Contract $source)
3940 'title ' => $ source ->title (),
4041 'settings ' => [
4142 'collections ' => $ source ->collections ()->map ->handle (),
43+ 'select_across_sites ' => $ source ->canSelectAcrossSites (),
4244 'max_depth ' => $ source ->maxDepth (),
4345 'expects_root ' => $ source ->expectsRoot (),
4446 ],
You can’t perform that action at this time.
0 commit comments