Page 1 of 1

Fore selecting a category and see a category admin panel

Posted: Mon Sep 19, 2011 12:25 pm
by lupolo
How to force a client to choose a category wenn submitting a ticket? (accept the first one (default).

How to see a collum witch the ticket category next to the ticket id in the admin panel?

Re: Fore selecting a category and see a category admin panel

Posted: Mon Sep 19, 2011 12:42 pm
by lupolo
lupolo wrote:How to see a collum witch the ticket category next to the ticket id in the admin panel?
Have the modified the admin panel list to show the catogory BUT how to show the name instead of the number?

Re: Fore selecting a category and see a category admin panel

Posted: Tue Sep 20, 2011 2:09 pm
by lupolo
Nobody know's how to see the category name in the admin pannel? I have mod it to see the number, but do'n know how to fix the name

Re: Fore selecting a category and see a category admin panel

Posted: Tue Sep 20, 2011 2:22 pm
by Klemen
This goes somewhere after including files:

Code: Select all

$my_cats = hesk_getCategoriesArray();
Then you can use $my_cats['CATEGORY_ID'] to get the name.

Re: Fore selecting a category and see a category admin panel

Posted: Tue Sep 20, 2011 2:28 pm
by lupolo
Klemen wrote:This goes somewhere after including files:

Code: Select all

$my_cats = hesk_getCategoriesArray();
Then you can use $my_cats['CATEGORY_ID'] to get the name.
Thank you!

Must i also put this code into the ticket_list.inc.php? Mine extra line:

Code: Select all

<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['category'] . '&sort='; ?>category"><?php echo $hesklang['category']; ?></a></th>
And what about forcing to select a catogory for the customers?

Re: Fore selecting a category and see a category admin panel

Posted: Tue Sep 20, 2011 3:10 pm
by Klemen
Trial and eror - please try and test.

Forcing categories requires more work than I support I'm afraid.