Details
Description
See http://forum.civicrm.org/index.php/topic,11982.0.html
Also, update CRM_Case_BAO_Case::retrieveCaseIdsByContactId to NOT return is_deleted cases by default by adding a $includeDeleted = false parameter (which allows caller to also get deleted cases if needed).