when an item exists and be imported again. it will not be updated.
the source should be modifed as following.
if($current_item && isset($rules['item']['exist'])){
$item_db['itemid']=$current_item['itemid'];
$current_item = CItem::update($item_db);
if($current_item === false){
error(CItem::resetErrors());
$result = false;
break;
}
}
the source should be modifed as following.
if($current_item && isset($rules['item']['exist'])){
$item_db['itemid']=$current_item['itemid'];
$current_item = CItem::update($item_db);
if($current_item === false){
error(CItem::resetErrors());
$result = false;
break;
}
}