Handle changing language on view ticket page
This commit is contained in:
parent
a186ef7eed
commit
8dfcdaa0f0
@ -1030,7 +1030,7 @@ function hesk_showTopBar($page_title)
|
|||||||
echo $page_title;
|
echo $page_title;
|
||||||
} // END hesk_showTopBar()
|
} // END hesk_showTopBar()
|
||||||
|
|
||||||
function hesk_getLanguagesAsFormIfNecessary()
|
function hesk_getLanguagesAsFormIfNecessary($trackingID = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
global $hesk_settings, $hesklang;
|
global $hesk_settings, $hesklang;
|
||||||
@ -1039,6 +1039,14 @@ function hesk_getLanguagesAsFormIfNecessary()
|
|||||||
|
|
||||||
$str = '<form method="get" action="" role="form" style="margin:0;padding:0;border:0;white-space:nowrap;">';
|
$str = '<form method="get" action="" role="form" style="margin:0;padding:0;border:0;white-space:nowrap;">';
|
||||||
|
|
||||||
|
if ($trackingID !== false) {
|
||||||
|
$str .= '<input type="hidden" name="track" value="'.hesk_htmlentities($trackingID).'">';
|
||||||
|
|
||||||
|
if ($hesk_settings['email_view_ticket'] && isset($hesk_settings['e_email'])) {
|
||||||
|
$str .= '<input type="hidden" name="e" value="'.hesk_htmlentities($hesk_settings['e_email']).'">';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($_GET)) {
|
if (!isset($_GET)) {
|
||||||
$_GET = array();
|
$_GET = array();
|
||||||
}
|
}
|
||||||
|
@ -333,7 +333,13 @@ if ($modsForHesk_settings['show_icons']) {
|
|||||||
</ul>
|
</ul>
|
||||||
<?php if ($hesk_settings['can_sel_lang']) { ?>
|
<?php if ($hesk_settings['can_sel_lang']) { ?>
|
||||||
<div class="navbar-form navbar-right" role="search" style="margin-right: 20px; min-width: 80px;">
|
<div class="navbar-form navbar-right" role="search" style="margin-right: 20px; min-width: 80px;">
|
||||||
<?php echo hesk_getLanguagesAsFormIfNecessary(); ?>
|
<?php
|
||||||
|
if (defined('PAGE_TITLE') && PAGE_TITLE == 'CUSTOMER_TICKET') {
|
||||||
|
hesk_getLanguagesAsFormIfNecessary($trackingID);
|
||||||
|
} else {
|
||||||
|
hesk_getLanguagesAsFormIfNecessary();
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user