Changeset 385 for trunk/export/export.php
- Timestamp:
- Mar 14, 2010, 5:24:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r380 r385 99 99 $Values = ''; 100 100 foreach($TranslationTree[$Group['Id']]['Items'] as $GroupItem) 101 if($GroupItem['Column'] != $Group['PrimaryKeyItem']) // Do not update primary key 101 102 { 102 103 if($GroupItem['MangosColumn'] == '') $GroupItem['MangosColumn'] = $GroupItem['Column']; … … 104 105 } 105 106 $Values = substr($Values, 2); 106 $Buffer .= 'UPDATE `'.$Group['MangosTable'].'` SET '.$Values.' WHERE `'.$Group['MangosTableIndex'].'` = '.$Line['Entry'].';'."\n"; 107 108 $ColumnItems = explode(',', $Group['MangosTableIndex']); 109 if(count($ColumnItems) > 1) 110 { 111 $Where = 'CONCAT('; 112 foreach($ColumnItems as $ColumnItem) 113 $Where .= '`'.$ColumnItem.'`, "_", '; 114 $Where = substr($Where, 0, -7).')'; 115 } else $Where = '`'.$Group['MangosTableIndex'].'`'; 116 $Where .= ' = "'.$Line[$Group['PrimaryKeyItem']].'";'."\n"; 117 $Buffer .= 'UPDATE `'.$Group['MangosTable'].'` SET '.$Values.' WHERE '.$Where; 107 118 } 108 119 }
Note:
See TracChangeset
for help on using the changeset viewer.