Author Topic: [1.7-beta2] problem view activities  (Read 2287 times)

Henry

  • Full Member
  • ***
  • Posts: 159
    • View Profile
[1.7-beta2] problem view activities
« on: April 06, 2010, 05:58:12 pm »

i have add a user. After that i worked a little bit to test the new functions. I have create many aktivities on the objects.

Then i have delete the User with my admin account. I want to see the reaction of the activities protocol. but i have seen the error, if i want to View all activity

Code: [Select]
Fatal error: Call to a member function getCardUrl() on a non-object in /www/htdocs/v136341/fo_test/application/views/object/view_history.php  on line 42

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: [1.7-beta2] problem view activities
« Reply #1 on: April 07, 2010, 10:32:02 am »
Hi Henry,

Please change line 42 and 71 of file 'application/views/object/view_history.php' for this:

Code: [Select]
echo $date . ' </td><td style="padding:5px;padding-right:15px;"><a class="internalLink" href="' . ($log->getTakenBy() instanceof User ? $log->getTakenBy()->getCardUrl() : '#') . '">'  . clean($log->getTakenByDisplayName()) . '</a></td><td style="padding:5px;padding-right:15px;"> ' . $log->getText();