CRM-18013: Profile default value issue
authorJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 10 Feb 2016 16:19:03 +0000 (16:19 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 10 Feb 2016 16:19:03 +0000 (16:19 +0000)
CRM/Event/BAO/Event.php

index e18b793c2174a81e1a6acaf149a8c1e3616f00b3..af57ba59660ff7338f806755ae2bab1cea310ef2 100644 (file)
@@ -1467,10 +1467,11 @@ WHERE civicrm_event.is_active = 1
           break;
         }
       }
-      $customVal = '';
+
       $imProviders = CRM_Core_PseudoConstant::get('CRM_Core_DAO_IM', 'provider_id');
       //start of code to set the default values
       foreach ($fields as $name => $field) {
+        $customVal = '';
         $skip = FALSE;
         // skip fields that should not be displayed separately
         if ($field['skipDisplay']) {