Skip to content

Commit

Permalink
CRM-20097 - Accept url default for link case form
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed May 8, 2017
1 parent 6e19e2e commit fe88acf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CRM/Case/Form/Activity/LinkCases.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ public static function preProcess(&$form) {
* @return array
*/
public static function setDefaultValues(&$form) {
return $defaults = array();
$defaults = array();
if (!empty($_GET['link_to_case_id']) && CRM_Utils_Rule::positiveInteger($_GET['link_to_case_id'])) {
$defaults['link_to_case_id'] = $_GET['link_to_case_id'];
}
return $defaults;
}

/**
Expand Down

0 comments on commit fe88acf

Please sign in to comment.