From 69839af20c7228aef45996aad3ca6a39d7b83cf4 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 6 Aug 2015 03:50:40 -0500 Subject: [PATCH] search: Fix hardcoded table prefix --- bootstrap.php | 1 + include/class.search.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index dac403a93..3d7b6a4e9 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -132,6 +132,7 @@ class Bootstrap { define('PLUGIN_TABLE', $prefix.'plugin'); define('SEQUENCE_TABLE', $prefix.'sequence'); define('TRANSLATION_TABLE', $prefix.'translation'); + define('QUEUE_TABLE', $prefix.'queue'); define('API_KEY_TABLE',$prefix.'api_key'); define('TIMEZONE_TABLE',$prefix.'timezone'); diff --git a/include/class.search.php b/include/class.search.php index b0717c477..c754b4068 100644 --- a/include/class.search.php +++ b/include/class.search.php @@ -612,7 +612,7 @@ MysqlSearchBackend::register(); class SavedSearch extends VerySimpleModel { static $meta = array( - 'table' => 'ost_queue', # QUEUE_TABLE + 'table' => QUEUE_TABLE, 'pk' => array('id'), 'ordering' => array('sort'), ); -- GitLab