@@ 604-610 (lines=7) @@ | ||
601 | 'Question_Group', |
|
602 | [['Event_Question_Group.EQG_primary' => true]] |
|
603 | ); |
|
604 | if (! empty($orig_primary_qgs)) { |
|
605 | foreach ($orig_primary_qgs as $id => $obj) { |
|
606 | if ($obj instanceof EE_Question_Group) { |
|
607 | $new_event->_add_relation_to($obj, 'Question_Group', ['EQG_primary' => true]); |
|
608 | } |
|
609 | } |
|
610 | } |
|
611 | // next additional attendee question groups |
|
612 | $orig_additional_qgs = $orig_event->get_many_related( |
|
613 | 'Question_Group', |
|
@@ 616-622 (lines=7) @@ | ||
613 | 'Question_Group', |
|
614 | [['Event_Question_Group.EQG_additional' => true]] |
|
615 | ); |
|
616 | if (! empty($orig_additional_qgs)) { |
|
617 | foreach ($orig_additional_qgs as $id => $obj) { |
|
618 | if ($obj instanceof EE_Question_Group) { |
|
619 | $new_event->_add_relation_to($obj, 'Question_Group', ['EQG_additional' => true]); |
|
620 | } |
|
621 | } |
|
622 | } |
|
623 | ||
624 | $new_event->save(); |
|
625 |