Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModTracker error when adding comment
#1
Hi,
does someone have this error and corrected it ?

I use modtracker to track any change on modules like Tickets, it works well when modifying any field but it's not working as soon as I insert a comment.

Code:
Uncaught SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data
    showhistory http://cbprdtest/modules/ModTracker/ModTrackerCommon.js:139
    jQuery 6
    showhistory http://cbprdtest/modules/ModTracker/ModTrackerCommon.js:134
    <anonymous> javascript:ModTrackerCommon.showhistory('223451'):1
ModTrackerCommon.js:139:27
    showhistory http://cbprdtest/modules/ModTracker/ModTrackerCommon.js:139
    jQuery 6
    showhistory http://cbprdtest/modules/ModTracker/ModTrackerCommon.js:134
    <anonyme> javascript:ModTrackerCommon.showhistory('223451'):1

httpd error log:
Code:
PHP Fatal error:  Call to a member function getFieldLabelKey() on string in /var/www/html/corebos/modules/ModTracker/core/ModTracker_Field.php on line 25, referer: http://cbprdtest.viti.pf/index.php?module=HelpDesk&parenttab=ptab&action=DetailView&record=223449

Thanks for your help
Reply
#2
Hi

update your code, see if this change does the trick: https://github.com/tsolucio/corebos/commit/7d1a2e47753c6f31aad3009cb2819d181704dc6e
Joe
TSolucio
Reply
#3
Thumbs Up 
Hi Joe,

Thanks a lot, it works like a charm now Smile

Steve
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)