Details
Description
Clicking the Print Case Report button within a case causes a fatal error. I have tried this on Drupal 7 Civi 4.0 and 4.0.1. Both sites are running on a standard LAMP stack.
Both times I receive a fatal error. I have tried this on the demo site but am unable to create a case because the case module is configured incorrectly.
The errors I have received can be seen in this thread. http://forum.civicrm.org/index.php/topic,19819.0.html
NOTE: This issue only occurs in 4.0.x. I've recreated it on my local D7 / 4.0.1 install. The report works properly in 3.4.1 / D6. The specific error is: Could not find valid value for caseid
I added a backtrace and then added debug to CRM/Case/Form/Report.php. The retrieve() on line 69 is returning an empty value (in fact the $this object has null values for caseID, clientID etc. in 4.0.1. I added similar debug to that file in 3.4.1 and the preProcess was never called ??? ).