165,167d164
<            if ($this->numberOfFollowups()>0) {
<             $ong[1] = $LANG['job'][9]." (".$this->numberOfFollowups().") ";
<            } else {
169d165
<            }
175,177d170
<            if ($this->numberOfTasks()>0) {
<             $ong[2] = $LANG['job'][7]." (".$this->numberOfTasks().") ";
<            } else {
179,184d171
<            }
<          }
<          if ($this->hasSolution()>0) {
<             $ong[4] = $LANG['jobresolution'][1]."(1)";
<          } else {
<             $ong[4] = $LANG['jobresolution'][1];
185a173
>          $ong[4] = $LANG['jobresolution'][1];
187,191c175
<          if ($this->numberOfDocuments()>0) {
<             $ong[5] = $LANG['Menu'][27]." (".$this->numberOfDocuments().") ";
<          } else {
<             $ong[5] = $LANG['Menu'][27];
<          }
---
>          $ong[5] = $LANG['Menu'][27];
1232,1249d1215
<    function numberOfDocuments() {
<       global $DB;
< 
<       // Set number of documents attached to ticket
<       $query = "SELECT count(*)
<                 FROM `glpi_documents_items`
<                 WHERE `itemtype` = 'Ticket' AND `items_id` = '".$this->fields["id"]."'";
<       $result = $DB->query($query);
< 
<       return $DB->result($result,0,0);
<    }
< 
<    function hasSolution() {
<       // Show if the ticket has a solution or not
<       return abs($this->getField('ticketsolutiontypes_id'));
<       //return 1;
<    }
< 
