Support

Akeeba Ticket System

#41126 Number of posts per ticket in category

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.8
PHP version
8.x
Akeeba Ticket System version
n/a

Latest post by sakis on Tuesday, 24 September 2024 08:48 CDT

sakis

Hi Nichola

Can you include a posts/ticket var in ticket object in the category view (See attachment).

The `posts` var was there in previous releases but seems it has been removed.

Regards,
Sakis

nicholas
Akeeba Staff
Manager

The number of posts has never been stored in the #__ats_tickets table. The posts property was not a variable, it was using __get to return a FOF relation object. What you were doing was run a SQL query for each and every row.

You can still do that. You can do count($ticket->posts(null, false)) with the exact same performance penalty.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

sakis

Ok. Thanks!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!