GX-Abgewiesen #54787 » CSVProductQTYFix.patch
src/system/classes/csv/CSVSource.php (revision ) | ||
---|---|---|
2746 | 2746 |
} |
2747 | 2747 |
else if (!empty($t_table_data[$i]['image_name'])) |
2748 | 2748 |
{ |
2749 |
$t_action = 'insert';
|
|
2749 |
$t_action = 'replace';
|
|
2750 | 2750 |
$t_where = ''; |
2751 | 2751 |
} |
2752 | 2752 | |
... | ... | |
2770 | 2770 |
xtc_db_perform($t_table_name, $t_table_data[$i], $t_action, $t_where); |
2771 | 2771 |
} |
2772 | 2772 | |
2773 |
if ($t_action == 'insert')
|
|
2773 |
else if (!empty($t_table_data[$i]['image_name']))
|
|
2774 | 2774 |
{ |
2775 | 2775 |
$t_table_data[$i]['image_id'] = ((is_null($___mysqli_res = mysqli_insert_id($GLOBALS["___mysqli_ston"]))) ? false : $___mysqli_res); |
2776 | 2776 |
$this->v_entry_exists_array[$t_table_name . '__' . $i . '_exists'] = $t_table_data[$i]['image_id']; |
... | ... | |
2826 | 2826 |
} |
2827 | 2827 |
else |
2828 | 2828 |
{ |
2829 |
$t_action = 'insert';
|
|
2829 |
$t_action = 'replace';
|
|
2830 | 2830 |
$t_where = ''; |
2831 | 2831 |
} |
2832 | 2832 | |
... | ... | |
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 |
} |