Hi,As title says, im trying to find a way to display some custom fields that i have added to task details form, in ticket details. First of all, i have added the tasks table (without links and buttons) from /include/staff/ticket-tasks.inc.php to /include/staff/ticket-view.inc.php and changed its class to class="ticket_info custom-data", so now agents can see all tasks under ticket fields with same colors.The problem is that i have added 3 custom fields in task details form : technician (dropdown selection, techid), "dateofwork" (date-time field with hour selection) , "hoursofwork" and I have to display these field in the tasks table that i have added in ticket details.in include/class.task.php I added function getTechnician() {        return $this->technisian;    } function getHourswork() {       return $this->hoursofwork;    }but i get an error. Data are stored to `ost_task__cdata`, where the 3 custom fields are there as different columns.George

2 months later

Update : I have added the following functions in class.task.php, under line : class Task extends TaskModel  function getOres() {        return $this->__cdata('hoursofwork', ObjectModel:);    }function getDateTechnitian() {        return $this->__cdata('dateofwork', ObjectModel:);    }In ticket-view.inc.php where the tasks table is, I have added the following under foreach ($tasks as $task)$myores = $task->getOres();$mydateergasias = Format:($task->getDateTechnitian());and in table <td>&nbsp;<?php echo $myores; ?></td><td>&nbsp;<?php echo $mydateergasias; ?></td>New columns work fine but I think that data is from _cdata tables so after a while, data will be moved to ost_form_entry_values ?Version 1.10

Write a Reply...