[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9653] api: filter on custom attr
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [9653] api: filter on custom attr |
Date: |
Fri, 22 Jun 2012 13:38:11 +0000 |
Revision: 9653
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9653
Author: sigurdne
Date: 2012-06-22 13:38:11 +0000 (Fri, 22 Jun 2012)
Log Message:
-----------
api: filter on custom attr
Modified Paths:
--------------
trunk/phpgwapi/inc/class.custom_fields.inc.php
Modified: trunk/phpgwapi/inc/class.custom_fields.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.custom_fields.inc.php 2012-06-22 13:17:46 UTC
(rev 9652)
+++ trunk/phpgwapi/inc/class.custom_fields.inc.php 2012-06-22 13:38:11 UTC
(rev 9653)
@@ -958,11 +958,19 @@
{
if($value)
{
- $condition[] = "$column =
'{$value}'";
+ switch($value)
+ {
+ case 'IS NOT NULL':
+ $condition[] =
"{$column} IS NOT NULL";
+ break;
+ default:
+ $condition[] =
"{$column} = '{$value}'";
+ }
+
}
else
{
- $condition[] = "$column IS
NULL";
+ $condition[] = "{$column} IS
NULL";
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9653] api: filter on custom attr,
Sigurd Nes <=