summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Gyger <jgyger7@gmail.com>2015-09-05 23:01:47 +0200
committerJean-Luc Gyger <jgyger7@gmail.com>2015-09-05 23:01:47 +0200
commit141af000ea5f9ab59c54062d9c78bf081013eb24 (patch)
treed9c085bdb8946b078e986038b61803b733fd58b1
parent36419b8ceec3d6144ec72fe74b0b1dca23367849 (diff)
Issue 549
Reset the criteria condition when empty
-rw-r--r--framework/Data/DataGateway/TSqlCriteria.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Data/DataGateway/TSqlCriteria.php b/framework/Data/DataGateway/TSqlCriteria.php
index bc1bbbbb..e62aeccd 100644
--- a/framework/Data/DataGateway/TSqlCriteria.php
+++ b/framework/Data/DataGateway/TSqlCriteria.php
@@ -127,6 +127,8 @@ class TSqlCriteria extends TComponent
public function setCondition($value)
{
if(empty($value)) {
+ // reset the condition
+ $this->_condition = '';
return;
}