Changeset 835 for trunk


Ignore:
Timestamp:
Aug 25, 2015, 12:11:13 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Do not automatically translate text items with empty strings. This would lead to huge number of unneeded items.
Location:
trunk
Files:
2 edited

Legend:

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

    r834 r835  
    2626        $Filter = array();
    2727        foreach($Group['Items'] as $GroupItem)
    28           if(($GroupItem['Visible'] == 1))
     28        {
     29          if(($GroupItem['Visible'] == 1) and ($EnglishText[$GroupItem['Column']] != ''))
    2930            $Filter[] = '(`'.$GroupItem['Column'].'` = "'.addslashes($EnglishText[$GroupItem['Column']]).'")';
    30           if(count($Filter) > 0) $Filter = ' AND ('.implode(' OR ', $Filter).')';
     31        }
     32        if(count($Filter) > 0) $Filter = ' AND ('.implode(' OR ', $Filter).')';
     33          else $Filter = ' AND 0';
    3134
    3235          $Query = 'SELECT * FROM `'.$Table.'` WHERE (`Language` = '.$this->System->Config['OriginalLanguage'].')'.$Filter;
  • trunk/includes/Version.php

    r834 r835  
    66// and system will need database update.
    77
    8 $Revision = 834; // Subversion revision
     8$Revision = 835; // Subversion revision
    99$DatabaseRevision = 811; // Database structure revision
    1010$ReleaseTime = '2015-08-24';
Note: See TracChangeset for help on using the changeset viewer.