/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->completeField("error_type"); $_types = array_flip(CError::$_types); if (isset($_types[$this->error_type])) { $_num_type = $_types[$this->error_type]; $this->_category = CError::$_categories[$_num_type]; } }