Fixed - When resaving configuration from child, setdefaults would not work
authorunknown <priyanka.karan26@gmail.com>
Mon, 29 Sep 2014 11:27:20 +0000 (12:27 +0100)
committerdeepak-srivastava <deepak.srivastava.0303@gmail.com>
Fri, 3 Oct 2014 09:08:27 +0000 (10:08 +0100)
CRM/Core/BAO/RecurringEntity.php

index 55b93590beee63d98ee1f5d07e140003316af781..dfef78a31c1872eec1b98c7481857e534258453c 100644 (file)
@@ -543,12 +543,7 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
     }
 
     if(CRM_Utils_Array::value('event_id', $formParams)){
-      $parent_event_id = self::getParentFor($formParams['event_id'], 'civicrm_event');
-      if($parent_event_id){
-        $dbParams['entity_value'] = $parent_event_id;
-      }else{
-        $dbParams['entity_value'] = $formParams['event_id'];
-      }
+      $dbParams['entity_value'] = $formParams['event_id'];
     }
 
     if(CRM_Utils_Array::value('repetition_start_date', $formParams)) {