From 17cf20a4f1bb026dd6191620cf4d031af29688bf Mon Sep 17 00:00:00 2001 From: Ryan Johnston Date: Tue, 26 Jun 2018 14:48:29 -0600 Subject: [PATCH] Handle duplication of pages with elemental-list properly --- src/Model/ElementList.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Model/ElementList.php b/src/Model/ElementList.php index 425af40..e312c04 100644 --- a/src/Model/ElementList.php +++ b/src/Model/ElementList.php @@ -26,6 +26,10 @@ class ElementList extends BaseElement 'Elements' ]; + private static $cascade_duplicates = [ + 'Elements' + ]; + private static $extensions = [ ElementalAreasExtension::class ]; @@ -35,7 +39,7 @@ class ElementList extends BaseElement private static $title = 'Group'; private static $description = 'Orderable list of elements'; - + private static $singular_name = 'list'; private static $plural_name = 'lists';