Changeset 12445 for trunk/www/db_po


Ignore:
Timestamp:
11/07/11 12:02:51 (13 years ago)
Author:
Daniela Dorner
Message:
changed sorting of po list to fix bug in compare
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/get_values.php

    r12097 r12445  
    6060    $query0 ="SELECT fIndex, fValidFrom, fProgram, Concat(fKey1,fKey2), fValue, ";
    6161    $query0.="fDescription, fCounter, fType, fMin, fMax, fKey1, SUBSTRING(fKey2,2), ";
    62     $query0.="if(fOriginalIndex=0, fIndex, fOriginalIndex), fUser FROM ProgramOption ";
     62    $query0.="if(fOriginalIndex=0, fIndex, fOriginalIndex) as MyIndex, fUser FROM ProgramOption ";
    6363    $query0.="WHERE 1=1 ";
    6464    if (strcmp($_GET["fKey"],"all")!=0)
     
    7373            $query0.=" AND (fValidFrom < '".$_GET["fStatusDate"]."' OR fValidFrom like '".$_GET["fStatusDate"]."%') ";
    7474    }
    75     $query0.=" ORDER BY fOriginalIndex, fIndex";
     75    $query0.=" ORDER BY MyIndex ";
    7676
    7777    $result0=mysql_query($query0, $db_id);
Note: See TracChangeset for help on using the changeset viewer.