Changeset 664


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.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r663 r664  
    11<?php
    22
    3 $Revision = 663; // Subversion revision
     3$Revision = 664; // Subversion revision
    44$DatabaseRevision = 662; // SQL structure revision
    5 $ReleaseTime = strtotime('2014-06-03');
     5$ReleaseTime = strtotime('2014-06-13');
  • 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.