Ignore:
Timestamp:
Jun 13, 2014, 8:02:40 PM (10 years ago)
Author:
chronos
Message:
  • Změněno: Zjednodušen obecný SQL dotaz pro zobrazení tabulek v modulu IS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/IS/IS.php

    r661 r664  
    386386    if($Filter != '')
    387387    {
    388       $Query = 'SELECT COUNT(*) FROM (SELECT '.$Columns.' FROM '.$SourceTable.') AS `TS` '.$Filter;
     388      $Query = 'SELECT COUNT(*) FROM '.$SourceTable.' '.$Filter;
    389389      $DbResult = $this->Database->query($Query);
    390390      $DbRow = $DbResult->fetch_row();
     
    423423
    424424    // Load and show items
    425     $Query = 'SELECT * FROM (SELECT '.$Columns.' FROM '.$SourceTable.') AS `TS` '.
     425    $Query = 'SELECT '.$Columns.' FROM '.$SourceTable.' '.
    426426      $Filter.' '.$Order['SQL'].$PageList['SQLLimit'];
    427427    $VisibleItemCount = 0;
Note: See TracChangeset for help on using the changeset viewer.