Changeset 581 for trunk/Common/Form/Types
- Timestamp:
- Oct 14, 2013, 12:26:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/Base.php
r548 r581 47 47 function OnFilterName($Item) 48 48 { 49 return('`'.$Item['Name'].'`'); 49 if($Item['SQL'] != '') $SQL = '('.$Item['SQL'].') AS '; 50 else $SQL = ''; 51 return($SQL.'`'.$Item['Name'].'`'); 50 52 } 51 53 52 54 function OnFilterNameQuery($Item) 53 55 { 54 return('`'.$Item['Name'].'`, `'.$Item['Name'].'` AS `'.$Item['Name'].'_Filter`'); 56 if($Item['SQL'] != '') 57 $Output = '('.$Item['SQL'].') AS `'.$Item['Name'].'`, ('.$Item['SQL'].') AS `'.$Item['Name'].'_Filter`'; 58 else $Output = '`'.$Item['Name'].'`, `'.$Item['Name'].'` AS `'.$Item['Name'].'_Filter`'; 59 return($Output); 55 60 } 56 61 }
Note:
See TracChangeset
for help on using the changeset viewer.