rem: sql += "WHERE TYPE = 'system' "; 
add: sql += "WHERE SYSLOG_TYPE = 'system' "; 
context: function searchSyslog(show,order,keywords) {   // construct the sql-clause for manual subnodeRelation   var sql = "";   if (!show || show == "1")      sql += "WHERE TYPE = 'weblog' ";   else if (show == "2")      sql += "WHERE TYPE = 'user' ";   else if (show == "3")      sql += "WHERE TYPE = 'system' ";   if (keywords) {      // additional keywords are given, so we're using them      var kArray = keywords.split(" ");      for (var i in kArray) {         var k = kArray[i];         sql += sql.length > 0 ? "AND " : "WHERE ";         sql += "(OBJECT LIKE '%" + k + "%' OR LOGENTRY LIKE '%" + k + "%') ";      }   }   if (!order || order == "0")      sql += "ORDER BY CREATETIME desc, ID desc ";   else if (order == "1")      sql += "ORDER BY CREATETIME asc, ID asc ";   // now do the actual search with a manual subnodeRelation   this.syslogs.subnodeRelation = sql;   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/e5a4ca395a67e069208aacedc83707ddb359984d/objectFunctions.js/buggy/code/SysMgr/objectFunctions.js