EM Person summary returns the wrong keys.
-
If you use
$EM_Booking->get_person()->get_summary()
the array keys are mixed up.In events-manager/classes/em-person.php, lines 111-116 is:
$summary = array( 'dbem_phone' => array('name' => __('Name','events-manager'), 'value' => $this->get_name()), 'user_name' => array('name' => __('Email','events-manager'), 'value' => $this->user_email), 'user_email' => array('name' => __('Phone','events-manager'), 'value' => $this->phone), );
As you can see the array keys do not correspond with the values. It should be:
$summary = array( 'user_name' => array('name' => __('Name','events-manager'), 'value' => $this->get_name()), 'user_email' => array('name' => __('Email','events-manager'), 'value' => $this->user_email), 'dbem_phone' => array('name' => __('Phone','events-manager'), 'value' => $this->phone), );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘EM Person summary returns the wrong keys.’ is closed to new replies.