_action, ['insert', 'update'])) { $options['defaults'] = Qs_Request::getPost(); } return parent::_getFormInstance($type, $options); } public static function getFilterByCommitteeIdUrl($committeeId = null) { $url = static::getPage('url') . '?period=upcoming&type=committee&committeId='; if (!$committeeId) { $committeeId = '%d'; } return $url . $committeeId; } protected function _getNewForm(array $options = []) { if (($sourceId = Qs_Request::getGetValue('sourceId')) && null !== ($data = $this->_getDataObj()->setPrimaryKey($sourceId)->getData()) ) { unset($data['id'], $data['alias']); $options['defaults'] = $data; } $this->_getDataObj()->clearData()->clearPrimaryKey(); return parent::_getNewForm($options); } }