Redirect to the correct domain if using show all (#7265)
* Redirect to the correct domain if using show all * Update bridges.php * Update call_recordings.php * Update conference_controls.php * Update conference_profile_params.php * Update conference_profiles.php * Update email_queue.php * Update event_guard_logs.php * Update fax_queue.php * Update user_settings.php * Update require.php
This commit is contained in:
@@ -107,8 +107,12 @@
|
||||
foreach ($contact_attachments as $row) {
|
||||
$attachment_type = strtolower(pathinfo($row['attachment_filename'], PATHINFO_EXTENSION));
|
||||
$attachment_type_label = $attachment_type == 'jpg' || $attachment_type == 'jpeg' || $attachment_type == 'gif' || $attachment_type == 'png' ? $text['label-image'] : $text['label-file'];
|
||||
$list_row_url = '';
|
||||
if (permission_exists('contact_attachment_edit')) {
|
||||
$list_row_url = "contact_attachment_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_attachment_uuid']);
|
||||
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
|
||||
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
|
||||
}
|
||||
}
|
||||
echo "<tr class='list-row' href='".$list_row_url."'>\n";
|
||||
if (permission_exists('contact_attachment_delete')) {
|
||||
@@ -147,3 +151,4 @@
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user