[Vtigercrm-developers] Timecontrol bug

lajeesh k lajeeshk at gmail.com
Wed Apr 8 14:21:57 GMT 2015


Hi,

Issue get fixed when I added error reporting in config file


Regards,
Lajeesh

On Wed, Apr 8, 2015 at 2:56 PM, lajeesh k <lajeeshk at gmail.com> wrote:

> 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/598a531e/attachment.html>


More information about the vtigercrm-developers mailing list