#204 Add crosshair to ticket subject to view location
This commit is contained in:
parent
20fbf93321
commit
83525aabb5
@ -861,6 +861,17 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
{
|
||||
echo '<span class="fa fa-lock"></span> ';
|
||||
}
|
||||
$locationText = '';
|
||||
if (strpos($ticket['Location'], 'N/A') === false)
|
||||
{
|
||||
$locationText = $hesklang['click_for_map'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$locationText = $hesklang['location_unavailable'];
|
||||
}
|
||||
echo '<i class="fa fa-crosshairs" data-toggle="tooltip" title="'.$locationText.'"></i> ';
|
||||
// TODO ADD LOCATION CROSSHAIR
|
||||
echo $ticket['subject'];
|
||||
?></h3>
|
||||
</div>
|
||||
|
||||
@ -448,6 +448,7 @@ function execute230Scripts() {
|
||||
executeQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` SET `Key` = `ShortNameContentKey`");
|
||||
executeQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` DROP COLUMN `ShortNameContentKey`");
|
||||
executeQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` DROP COLUMN `TicketViewContentKey`");
|
||||
executeQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` ADD COLUMN `Location` VARCHAR(100) NOT NULL DEFAULT 'N/A-0'");
|
||||
executeQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` SET `Value` = '2.3.0' WHERE `Key` = 'modsForHeskVersion'");
|
||||
}
|
||||
|
||||
|
||||
@ -136,6 +136,13 @@ function removeServiceMessageCustomIcon() {
|
||||
executeQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."service_messages` DROP COLUMN `icon`");
|
||||
}
|
||||
|
||||
function removeTicketLocation() {
|
||||
global $hesk_settings;
|
||||
|
||||
hesk_dbConnect();
|
||||
executeQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` DROP COLUMN `Location`");
|
||||
}
|
||||
|
||||
function executeMiscellaneousSql() {
|
||||
global $hesk_settings;
|
||||
|
||||
|
||||
@ -44,6 +44,8 @@ $hesklang['show_number_merged_help'] = 'If enabled, the user will be able to see
|
||||
$hesklang['latest_top_on_home'] = 'Latest/Top articles on home page';
|
||||
$hesklang['latest_top_on_home_help'] = 'Select YES to display the top and latest knowledgebase articles on the home page.
|
||||
Otherwise, a link to the knowledgebase will appear on the home page.';
|
||||
$hesklang['location_unavailable'] = "Customer's location is unavailable. Click the crosshair for more information.";
|
||||
$hesklang['click_for_map'] = "Click the crosshair to see a map of the ticket's location";
|
||||
|
||||
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
|
||||
$hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user