Commit be6487bb authored by bgm's avatar bgm Committed by Aegir user
Browse files

Case create: use the case_subject, if available

parent 2c48d1a2
......@@ -97,6 +97,12 @@ class CRM_Activityprofile_APIWrappers_Profile {
// We default to setting the subject to the profile title,
// if no subject field was included in the profile.
// For new Cases, the case_subject must be copied into the subject field.
if (empty($apiRequest['params']['subject']) && !empty($params['case_subject'])) {
$params['subject'] = $params['case_subject'];
$apiRequest['params']['subject'] = $params['case_subject'];
}
$title = $params['subject'] ?? '';
if (empty($title)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment