protected function formSave(&$object, $saveMessage = NULL, $saveEvents = array()) { if (get_class($object) == 'Package') { $reg = $object->registry; $reg['defaults'] = $_POST['package']['registry']['defaults']; $object->registry = $reg; unset($_POST['package']['registry']); } return parent::formSave($object, $saveMessage, $saveEvents); }