Ignore:
Timestamp:
Dec 16, 2013, 2:14:02 PM (11 years ago)
Author:
maron
Message:
  • Added: New filter Notcomplete-nottran
  • Fixed: Column Take should index always to text with right versionstart and versionend, for importing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/TranslationList.php

    r636 r656  
    3838                else $Selected = '';
    3939                $Output .= '<option value="4"'.$Selected.'>Anglické</option>';
     40                if($Filter['State'] == 5) $Selected = ' selected="selected"';
     41                else $Selected = '';
     42                $Output .= '<option value="5"'.$Selected.'>Rozpracované-Nepřeložené</option>';
    4043                $Output .= '</select></td>';
    4144       
     
    162165                        ') AND (`T`.`Complete` = 0)';
    163166                        else if($Filter['State'] == 4) $Filter['SQL'] .= $VersionFilter.' AND (`T`.`Language` = '.$this->System->Config['OriginalLanguage'].')';
     167                        else if($Filter['State'] == 5) $Filter['SQL'] .= $UserFilter.$VersionFilter.' AND (`T`.`Language` != '.$this->System->Config['OriginalLanguage'].
     168                        ') AND (`T`.`Complete` = 0)'.
     169      'AND NOT EXISTS(SELECT 1 FROM `'.$Table.'` AS `Sub` WHERE '.
     170                                        '(`Sub`.`Language` <> '.$this->System->Config['OriginalLanguage'].')'.$LanguageFilter.
     171                                        ' AND (`Sub`.`Entry` = `T`.`Entry`) AND (`Sub`.`Complete` = 1) AND '.
     172                                        '(`Sub`.`VersionStart` = `T`.`VersionStart`) AND (`Sub`.`VersionEnd` = `T`.`VersionEnd`))';
    164173                }
    165174       
Note: See TracChangeset for help on using the changeset viewer.