#209 Support new status table

This commit is contained in:
Mike Koch 2015-07-28 12:52:30 -04:00
parent 22e8a8efe9
commit 6b83e852d0

View File

@ -58,13 +58,13 @@ hesk_token_check();
$trackingID = hesk_cleanID() or die($hesklang['int_error'].': '.$hesklang['no_trackID']);
/* Valid statuses */
$statusSql = "SELECT `ID`, `Key` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`";
$statusSql = "SELECT `ID` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`";
$status_options = array();
$results = hesk_dbQuery($statusSql);
while ($row = $results->fetch_assoc())
{
$status_options[$row['ID']] = $hesklang[$row['Key']];
$status_options[$row['ID']] = mfh_getDisplayTextForStatusId($row['ID']);
}
/* New status */