Changeset 601 for trunk/Common/Form


Ignore:
Timestamp:
Dec 7, 2013, 10:54:21 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Tabulka pro evidenci bezdrátovách rozhraní.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Types/Base.php

    r581 r601  
    4747  function OnFilterName($Item)
    4848  {
    49     if($Item['SQL'] != '') $SQL = '('.$Item['SQL'].') AS ';
     49    if(array_key_exists('SQL', $Item) and ($Item['SQL'] != ''))
     50      $SQL = '('.$Item['SQL'].') AS ';
    5051      else $SQL = '';
    5152    return($SQL.'`'.$Item['Name'].'`');
     
    5455  function OnFilterNameQuery($Item)
    5556  {
    56     if($Item['SQL'] != '')
     57    if(array_key_exists('SQL', $Item) and ($Item['SQL'] != ''))
    5758      $Output = '('.$Item['SQL'].') AS `'.$Item['Name'].'`, ('.$Item['SQL'].') AS `'.$Item['Name'].'_Filter`';
    5859      else $Output = '`'.$Item['Name'].'`, `'.$Item['Name'].'` AS `'.$Item['Name'].'_Filter`';
Note: See TracChangeset for help on using the changeset viewer.