BUG 9180 Correct Solr update and counters implementation
The following changes were made: - fix update Solr index process - implement casesenuLoader using Solr server to display counters - fix cron missing reference to system class - add function and classes documentation
This commit is contained in:
@@ -73,7 +73,7 @@ class Cases {
|
||||
//get Solr initialization variables
|
||||
if(($solrConf = System::solrEnv()) !== false){
|
||||
G::LoadClass('AppSolr');
|
||||
$appSolr = new AppSolr($solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance']);
|
||||
$this->appSolr = new AppSolr($solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -843,7 +843,6 @@ class Cases {
|
||||
*/
|
||||
|
||||
function updateCase($sAppUid, $Fields = array()) {
|
||||
|
||||
try {
|
||||
$aApplicationFields = $Fields['APP_DATA'];
|
||||
$Fields['APP_UID'] = $sAppUid;
|
||||
@@ -929,7 +928,9 @@ class Cases {
|
||||
}
|
||||
//Update Solr Index
|
||||
if($this->appSolr != null)
|
||||
{
|
||||
$this->appSolr->updateApplicationSearchIndex($sAppUid);
|
||||
}
|
||||
|
||||
return $Fields;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user