From 6e7df6e1f74fe1322bfe9dbd99a10a14b4b01b15 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 16 Apr 2016 12:19:16 +0100 Subject: [PATCH] Added attributes to prevent bad default data in groups. Closes #1683 --- app/Models/ComponentGroup.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Models/ComponentGroup.php b/app/Models/ComponentGroup.php index 07c6d617..31da0dea 100644 --- a/app/Models/ComponentGroup.php +++ b/app/Models/ComponentGroup.php @@ -22,6 +22,16 @@ class ComponentGroup extends Model implements HasPresenter { use SearchableTrait, SortableTrait, ValidatingTrait; + /** + * The model's attributes. + * + * @var string + */ + protected $attributes = [ + 'order' => 0, + 'collapsed' => 0, + ]; + /** * The attributes that should be casted to native types. *