Merge pull request #3794 from rohankatkar/CRM-15070
[civicrm-core.git] / CRM / Core / BAO / CustomValueTable.php
index ada4ee3fe90e26b678701af5f1e2a88ef8de813e..2cb38118fdb0efc4b423d88af632a6a70b562586 100644 (file)
@@ -595,6 +595,10 @@ AND    cf.id IN ( $fieldIDList )
           'is_multiple' => $dao->is_multiple,
         );
 
+        if ($cvParam['type'] == 'File') {
+          $cvParam['file_id'] = $fieldValue['value'];
+        }
+
         if (!array_key_exists($dao->table_name, $cvParams)) {
           $cvParams[$dao->table_name] = array();
         }