Fixed gh-117 to allow custom sql strings to be addedas a value key.

This commit is contained in:
Llewellyn van der Merwe 2017-09-13 12:15:14 +02:00
parent 8ccb13f3e0
commit 5d3e93c560
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
2 changed files with 5 additions and 1 deletions

View File

@ -1076,7 +1076,7 @@ class Get
/** /**
* To limit the SQL Demo date build in the views * To limit the SQL Demo date build in the views
* *
* @param array $settings Teaking array. * @param array $settings Tweaking array.
* *
* @return void * @return void
* *

View File

@ -1892,6 +1892,10 @@ class Interpretation extends Fields
$value = " ".$whe['value_key']."');"; $value = " ".$whe['value_key']."');";
} }
} }
elseif (ComponentbuilderHelper::checkString($whe['value_key']))
{
$value = " ".$whe['value_key']."');";
}
// only load if there is a value // only load if there is a value
if (ComponentbuilderHelper::checkString($value)) if (ComponentbuilderHelper::checkString($value))
{ {