Exemplo n.º 1
0
 /**
  * Retrieves extended information for bug (e.g. bug description)
  * @return null
  */
 private function fetch_extended_info()
 {
     if ($this->description == '') {
         $t_text = bug_text_cache_row($this->id);
         $this->description = $t_text['description'];
         $this->steps_to_reproduce = $t_text['steps_to_reproduce'];
         $this->additional_information = $t_text['additional_information'];
     }
 }
Exemplo n.º 2
0
function bug_get_text_field($p_bug_id, $p_field_name)
{
    $row = bug_text_cache_row($p_bug_id);
    if (isset($row[$p_field_name])) {
        return $row[$p_field_name];
    } else {
        error_parameters($p_field_name);
        trigger_error(ERROR_DB_FIELD_NOT_FOUND, WARNING);
        return '';
    }
}