diff --git a/src/app/Library/CrudPanel/Traits/AutoSet.php b/src/app/Library/CrudPanel/Traits/AutoSet.php index cbc794eeba..1944278ff6 100644 --- a/src/app/Library/CrudPanel/Traits/AutoSet.php +++ b/src/app/Library/CrudPanel/Traits/AutoSet.php @@ -4,6 +4,8 @@ trait AutoSet { + protected $autoset = []; + /** * For a simple CRUD Panel, there should be no need to add/define the fields. * The public columns in the database will be converted to be fields. @@ -38,7 +40,7 @@ public function setFromDb($setFields = true, $setColumns = true) } }, $this->getDbColumnsNames()); - unset($this->autoset); + $this->autoset = []; } /**