Changeset 601 for trunk/Common/Form
- Timestamp:
- Dec 7, 2013, 10:54:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/Base.php
r581 r601 47 47 function OnFilterName($Item) 48 48 { 49 if($Item['SQL'] != '') $SQL = '('.$Item['SQL'].') AS '; 49 if(array_key_exists('SQL', $Item) and ($Item['SQL'] != '')) 50 $SQL = '('.$Item['SQL'].') AS '; 50 51 else $SQL = ''; 51 52 return($SQL.'`'.$Item['Name'].'`'); … … 54 55 function OnFilterNameQuery($Item) 55 56 { 56 if( $Item['SQL'] != '')57 if(array_key_exists('SQL', $Item) and ($Item['SQL'] != '')) 57 58 $Output = '('.$Item['SQL'].') AS `'.$Item['Name'].'`, ('.$Item['SQL'].') AS `'.$Item['Name'].'_Filter`'; 58 59 else $Output = '`'.$Item['Name'].'`, `'.$Item['Name'].'` AS `'.$Item['Name'].'_Filter`';
Note:
See TracChangeset
for help on using the changeset viewer.