diff options
author | Jean-Luc Gyger <jgyger7@gmail.com> | 2015-09-05 23:01:47 +0200 |
---|---|---|
committer | Jean-Luc Gyger <jgyger7@gmail.com> | 2015-09-05 23:01:47 +0200 |
commit | 141af000ea5f9ab59c54062d9c78bf081013eb24 (patch) | |
tree | d9c085bdb8946b078e986038b61803b733fd58b1 | |
parent | 36419b8ceec3d6144ec72fe74b0b1dca23367849 (diff) |
Issue 549
Reset the criteria condition when empty
-rw-r--r-- | framework/Data/DataGateway/TSqlCriteria.php | 2 |
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; } |