/**
  * @param Mirasvit_Helpdesk_Model_Ticket $ticket
  * @param Mirasvit_Helpdesk_Model_Field  $field
  *
  * @return bool|string
  */
 public function getValue($ticket, $field)
 {
     $value = $ticket->getData($field->getCode());
     if (!$value) {
         return false;
     }
     if ($field->getType() == 'checkbox') {
         $value = $value ? Mage::helper('helpdesk')->__('Yes') : Mage::helper('helpdesk')->__('No');
     } elseif ($field->getType() == 'date') {
         $value = Mage::helper('core')->formatDate($value, Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);
     } elseif ($field->getType() == 'select') {
         $values = $field->getValues();
         $value = $values[$value];
     }
     return $value;
 }