From 5d3e93c5608922ec68220fa87187b8c599f255c6 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Wed, 13 Sep 2017 12:15:14 +0200 Subject: [PATCH] Fixed gh-117 to allow custom sql strings to be addedas a value key. --- admin/helpers/compiler/a_Get.php | 2 +- admin/helpers/compiler/e_Interpretation.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 5d0152e60..d9873b7df 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -1076,7 +1076,7 @@ class Get /** * To limit the SQL Demo date build in the views * - * @param array $settings Teaking array. + * @param array $settings Tweaking array. * * @return void * diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index cefd93ad0..f07ca59ce 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -1892,6 +1892,10 @@ class Interpretation extends Fields $value = " ".$whe['value_key']."');"; } } + elseif (ComponentbuilderHelper::checkString($whe['value_key'])) + { + $value = " ".$whe['value_key']."');"; + } // only load if there is a value if (ComponentbuilderHelper::checkString($value)) {