$this->addEntityRef(
'assign_to',
ts('Assign to'),
- array('entity' => 'case'),
+ array('entity' => 'Case'),
TRUE
);
$url = CRM_Utils_System::url(
'civicrm/contact/view/case',
- sprintf('cid=%d&id=%d', $clients[0], $caseId)
+ array(
+ 'cid' => $clients[0],
+ 'id' => $caseId,
+ 'reset' => 1,
+ 'action' => 'view',
+ )
);
CRM_Utils_System::redirect($url);
}