- add setting for default support-ticket priority, fixes #178
This commit is contained in:
@@ -582,4 +582,17 @@ if(isFroxlorVersion('0.9.6-svn2'))
|
||||
updateToVersion('0.9.6-svn3');
|
||||
}
|
||||
|
||||
if(isFroxlorVersion('0.9.6-svn3'))
|
||||
{
|
||||
showUpdateStep("Updating from 0.9.6-svn3 to 0.9.6-svn4", false);
|
||||
|
||||
$update_deftic_priority = isset($_POST['update_deftic_priority']) ? intval($_POST['update_deftic_priority']) : 2;
|
||||
|
||||
showUpdateStep("Setting default support-ticket priority");
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('ticket', 'default_priority', '".(int)$update_deftic_priority."');");
|
||||
lastStepStatus(0);
|
||||
|
||||
updateToVersion('0.9.6-svn4');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -62,4 +62,16 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version)
|
||||
}
|
||||
$return .= '<strong>Path/URL for error 404:</strong> <input type="text" name="update_deferr_404" /><br /><br />';
|
||||
}
|
||||
|
||||
if(versionInUpdate($current_version, '0.9.6-svn4'))
|
||||
{
|
||||
$has_preconfig = true;
|
||||
$return .= 'You can define a default support-ticket priority level which is pre-selected for new support-tickets.<br /><br />';
|
||||
$return .= '<strong>Which should be the default ticket-priority?:</strong> ';
|
||||
$return .= '<select name="update_deftic_priority">';
|
||||
$priorities = makeoption($lng['ticket']['unf_high'], '1', '2');
|
||||
$priorities.= makeoption($lng['ticket']['unf_normal'], '2', '2');
|
||||
$priorities.= makeoption($lng['ticket']['unf_low'], '3', '2');
|
||||
$return .= $priorities.'</select><br /><br />';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user