Closes #383 Fix screen res on index page

merge-requests/2/head
Mike Koch 9 years ago
parent d66d1abef9
commit a21129a11d

@ -1121,6 +1121,8 @@ function print_add_ticket()
<input type="hidden" id="latitude" name="latitude" value="E-0">
<input type="hidden" id="longitude" name="longitude" value="E-0">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
<input type="hidden" id="screen-resolution-height" name="screen_resolution_height">
<input type="hidden" id="screen-resolution-width" name="screen_resolution_width">
<input type="submit" value="<?php echo $hesklang['sub_ticket']; ?>"
class="btn btn-default">
</div>

@ -364,8 +364,8 @@ $tmpvar['longitude'] = hesk_POST('longitude');
$tmpvar['html'] = $modsForHesk_settings['rich_text_for_tickets_for_customers'];
// Set screen res and user agent
$tmpvar['screen_resolution_height'] = hesk_POST('screen_resolution_height');
$tmpvar['screen_resolution_width'] = hesk_POST('screen_resolution_width');
$tmpvar['screen_resolution_height'] = hesk_POST('screen_resolution_height', NULL);
$tmpvar['screen_resolution_width'] = hesk_POST('screen_resolution_width', NULL);
$tmpvar['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
// Should the helpdesk validate emails?

Loading…
Cancel
Save