[Vtigercrm-developers] Timecontrol bug
lajeesh k
lajeeshk at gmail.com
Wed Apr 8 09:26:53 GMT 2015
Hi,
I have a vtiger instance which is upgraded from 5.4 to 6.2 . I have
upgraded time control too.
created missing table columns in time control
module – fields created are relatednum,relatedname table is
vtiger_timecontrol
I gets fatal error when I clicks right side links in detail view.
when clicking timecontrol summery, timecontrol details, invoiced on links.
*Fatal error*: Call to a member function getRecord() on a non-object
in */var/www/html/2015/andrew_v62/modules/Timecontrol/views/Detail.php* on line
*23*
and the code which is throwing this error is
$recordModel = $this->record->getRecord();
if ($recordModel->get('date_end')=='') {
$date = $recordModel->get('date_start');
$time = $recordModel->get('time_start');
list($year, $month, $day) = split('-', $date);
list($hour, $minute) = split(':', $time);
$starttime = mktime($hour, $minute, 0, $month, $day, $year);
here the first line gives the error.
$recordModel = $this->record->getRecord();
Can anyone give me any clue for this bug
Regards,
Lajeesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150408/0431eb9c/attachment.html>
More information about the vtigercrm-developers
mailing list