X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FFriend%2FForm%2FEvent.php;h=c350050c3cd58e6d756a0d94a52bbbc20580df76;hb=e33df30ac5111d147f811b4c1d4330457048159b;hp=9971cfb9e9f7beeeb7f6875356fdfa051fba8de8;hpb=bd6d55934fb8cec290b612b6c2d3d028800744ad;p=civicrm-core.git diff --git a/CRM/Friend/Form/Event.php b/CRM/Friend/Form/Event.php index 9971cfb9e9..c350050c3c 100644 --- a/CRM/Friend/Form/Event.php +++ b/CRM/Friend/Form/Event.php @@ -1,9 +1,9 @@ _id)) { + $defaults['entity_table'] = 'civicrm_event'; + $defaults['entity_id'] = $this->_id; + CRM_Friend_BAO_Friend::getValues($defaults); + $this->_friendId = CRM_Utils_Array::value('id', $defaults); + } + CRM_Friend_BAO_Friend::buildFriendForm($this); parent::buildQuickForm(); }