Minor tweaks
This commit is contained in:
@@ -1281,6 +1281,8 @@ function _booking_leader_helper_email_summary($node) {
|
||||
$sessionid = "session" . $i;
|
||||
$roleid = $sessionid . "_role";
|
||||
$otherperson_name = "TBA";
|
||||
$otherperson_email = "";
|
||||
$otherperson_phone = "";
|
||||
|
||||
//check that this study group session has been defined for this attendee and that they
|
||||
if (!empty($node->$sessionid) && $node->$roleid > 0)
|
||||
@@ -1309,7 +1311,7 @@ function _booking_leader_helper_email_summary($node) {
|
||||
}
|
||||
|
||||
//find the other person
|
||||
$otherperson_query = db_query("SELECT m.*, p.booking_firstname, p.booking_lastname FROM {booking_studygroup_mapping} m " .
|
||||
$otherperson_query = db_query("SELECT m.*, p.* FROM {booking_studygroup_mapping} m " .
|
||||
" INNER JOIN {booking_person} p on m.booking_node_id = p.nid " .
|
||||
" WHERE booking_eventid = :eid " .
|
||||
" AND booking_studygroup_id = :group AND booking_studygroup_role = :role AND booking_session_id = :session",
|
||||
@@ -1323,12 +1325,13 @@ function _booking_leader_helper_email_summary($node) {
|
||||
foreach ($otherperson as $other)
|
||||
{
|
||||
$otherperson_name = $other->booking_firstname . ' ' . $other->booking_lastname;
|
||||
$otherperson_email = $other->booking_email;
|
||||
$otherperson_phone = $other->booking_mobile;
|
||||
}
|
||||
|
||||
|
||||
$rows[] = t('!role for !descrip (section !id). Your !otherrole is !other.',
|
||||
$rows[] = t('!role for !descrip (section !id). Your !otherrole is !other. You can contact them on !phone or !email.',
|
||||
array('!role' => $role, '!id' => $studygroups[$i]->sid, '!descrip' => $studygroups[$i]->booking_studygroup_descrip,
|
||||
'!otherrole' => $otherrole, '!other' => $otherperson_name,
|
||||
'!otherrole' => $otherrole, '!other' => $otherperson_name, '!phone' => $otherperson_phone, '!email' => $otherperson_email,
|
||||
));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user