/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->_view = $this->_name; $this->_shortview = CMbString::truncate($this->_name); $this->_cp_court = substr($this->cp, 0, 2); }