Show contact in events information

Former-commit-id: 5fd33a7b3abbcef12d8d26ff5d2e6ea14f17a44e
This commit is contained in:
manuel 2019-04-23 16:10:51 +02:00
parent 619d5eaf7d
commit 569c84ad05
1 changed files with 12 additions and 0 deletions

View File

@ -3258,6 +3258,18 @@ function events_page_general($event)
$data[1] .= groups_get_name($event['id_grupo']);
$table_general->data[] = $data;
$data = [];
$data[0] = __('Contact');
$data[1] = '';
$contact = db_get_value('contact', 'tgrupo', 'id_grupo', $event['id_grupo']);
if (empty($contact)) {
$data[1] = '<i>'.__('N/A').'</i>';
} else {
$data[1] = $contact;
}
$table_general->data[] = $data;
$data = [];
$data[0] = __('Tags');