From 62ade11c50c6ca31a36280cb772cfd051b0dc40d Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Thu, 6 Oct 2011 16:42:14 +0200 Subject: [PATCH] Checked and Merged Patch from BUGID 288 Thganks to Jeff for submitting the patch --- src/classes/logstream.class.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/classes/logstream.class.php b/src/classes/logstream.class.php index 98b0fcb..e04b405 100644 --- a/src/classes/logstream.class.php +++ b/src/classes/logstream.class.php @@ -927,11 +927,21 @@ abstract class LogStream { break; /* END WebLog based fields */ default: +/* OLD CODE // Custom Field, try to guess field! - if ( isset($fields[$tmpArray[FILTER_TMP_KEY]]) && isset($fields[$tmpArray[FILTER_TMP_KEY]]['SearchField']) ) { $tmpKeyName = $tmpArray[FILTER_TMP_KEY]; +*/ + // Custom Field, try to find field! + foreach ($fields as $aField) { + if ($aField['SearchField'] == $tmpArray[FILTER_TMP_KEY]) { + $tmpKeyName = $aField['FieldID']; + break; + } + } + if ( isset($fields[$tmpKeyName]) && isset($fields[$tmpKeyName]['SearchField']) ) + { $tmpFilterType = $fields[$tmpKeyName]['FieldType']; // Handle numeric fields!