Projekt

Allgemein

Profil

GX-Bug #54784 » CSVAdditionalFieldImportFix.patch

Till Tepelmann, 12.01.2018 15:34

Unterschiede anzeigen:

src/system/classes/csv/CSVSource.php (revision )
3055 3055
		{
3056 3056
			$t_table_data['item_id'] = $p_import_data['products']['products_id'];
3057 3057

  
3058
			$t_action = 'replace';
3059

  
3058 3060
			if (empty($t_table_data['additional_field_value_id']))
3059 3061
			{
3060
				$t_action = 'insert';
3061 3062
				$t_where = '';
3062 3063
			}
3063 3064
			else
3064 3065
			{
3065
				$t_action = 'replace';
3066 3066
				$t_where = 'additional_field_id = ' . $p_import_data[$t_table_name][$t_additional_field_id]['additional_field_id'] . ' AND item_id = ' . $t_table_data['products_id'];
3067 3067
			}
3068 3068

  
3069 3069
			xtc_db_perform($t_table_name, $t_table_data, $t_action, $t_where);
3070 3070

  
3071
			if ($t_action == 'insert')
3071
			if (empty($t_table_data['additional_field_value_id']))
3072 3072
			{
3073 3073
				$p_import_data[$t_table_name][$t_additional_field_id]['additional_field_value_id'] = ((is_null($___mysqli_res = mysqli_insert_id($GLOBALS["___mysqli_ston"]))) ? false : $___mysqli_res);
3074 3074
			}
    (1-1/1)