osTicket / osTicket

The osTicket open source ticketing system official project repository, for versions 1.8 and later
osticket.com
GNU General Public License v2.0
3.21k stars 1.65k forks source link

Tickets page content missing data #6575

Open rollopack opened 1 year ago

rollopack commented 1 year ago

In the scp/tickets.php page if queue is not adhoc some data is not present. Editing the file ticket/include/staff/templates/queue-tickets.tmpl.php I saw that the array $tickets has different data based on the type of "queue":

array(size=10)
   'ticket_id' => int 53
   'source' => string 'Email' (length=5)
   'cdata__subject' => string 'Try opening ticket via e-mail' (length=32)
   'isovertwo' => int 0
   'cdata__priority' => string '2' (length=1)
   '2GkBZxz' => int 0
   '_thread_count' => float 2
   '_att_count' => float 0
   '_locked' => null
   '_collabs' => float 0
array(size=18)
   'number' => string '749563' (length=6)
   'ticket_id' => int 53
   'source' => string 'Email' (length=5)
   'ticket_pid' => null
   'flags' => int 0
   'created' => string '2023-07-05 09:08:19' (length=19)
   'cdata__subject' => string 'Try opening ticket via e-mail' (length=32)
   'isovertwo' => int 0
   'user__name' => string 'Rolland Gabriel' (length=15)
   'cdata__priority' => string '2' (length=1)
   'staff__firstname' => string 'Gabriel' (length=7)
   'staff__lastname' => string 'Rolland' (length=7)
   'team__name' => null
   'team_id' => int 0
   '2GkBZxz' => int 0
   '_thread_count' => float 2
   '_att_count' => float 0
   'assignee' => string 'Gabriel' (length=7)

Versions

v1.18 (724de45) PHP 8.2.7 on Debian 12

rollopack commented 1 year ago

I seem to understand that the problem is in the italian translation. To be precise, in the file "ticket/include/i18n/it_IT/queue_column.yaml" the names of the database fields and also the "wrap" option have been translated. Same problem in the database table OS_queue_column. I think I corrected them in crowdin

Example: id: 1 name: "Ticket n°" primary: "number" filter: "link:ticketP" truncate: "wrap"

has been translated as: id: 1 name: "Ticket n°" primary: "numero" filter: "link:ticketP" truncate: "a capo"

JediKev commented 1 year ago

@rollopack

Funny, I actually just got done stabilizing the language packs. We will be making new builds very soon that should address the issue.

Cheers.