Skip to content

Commit

Permalink
Merge pull request civicrm#9754 from lcdservices/CRM-19947
Browse files Browse the repository at this point in the history
CRM-19947 fix file link on custom multi profile edit form
  • Loading branch information
monishdeb authored Feb 3, 2017
2 parents 489fdd4 + f8ebcb3 commit d6005d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CRM/Profile/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,11 @@ public function setDefaultsValues() {
) {
$entityId = $this->_activityId;
}
$url = CRM_Core_BAO_CustomField::getFileURL($entityId, $key);

$url = '';
if (isset($value)) {
$url = CRM_Core_BAO_CustomField::getFileURL($entityId, $key, $value);
}

if ($url) {
$customFiles[$name]['displayURL'] = ts("Attached File") . ": {$url['file_url']}";
Expand Down

0 comments on commit d6005d8

Please sign in to comment.