From 7f291a17a60d26820f805c73ba7806d614c502f0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 8 Sep 2014 18:23:34 +0000 Subject: [PATCH] Fix missed case of 'really need it'. See SVN r47435. --- etemplate/inc/class.so_sql_cf.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql_cf.inc.php b/etemplate/inc/class.so_sql_cf.inc.php index 3e923dbbc2..c8dc570af5 100644 --- a/etemplate/inc/class.so_sql_cf.inc.php +++ b/etemplate/inc/class.so_sql_cf.inc.php @@ -464,7 +464,10 @@ class so_sql_cf extends so_sql foreach($criteria as $name => $val) { // only add extra_join, if we really need it - if (!$extra_join_added && is_int($name) && strpos($val, $this->extra_value) !== false) + if (!$extra_join_added && ( + is_int($name) && strpos($val, $this->extra_value) !== false || + is_string($name) && $this->is_cf($name) + )) { $join .= $this->extra_join; $extra_join_added = true;