Commit a1718d87 authored by Volker Krause's avatar Volker Krause

Adapt to KItinerary changes

This fixes duplicating tourist attaction visit elements when re-importing
from JSON-LD.
parent 8f3dbb72
......@@ -139,7 +139,7 @@ void ReservationManager::importReservations(const QVector<QVariant> &resData)
// check if we know this one already, and update if that's the case
for (const auto &oldResId : reservations()) {
const auto oldRes = reservation(oldResId);
if (MergeUtil::isSameReservation(oldRes, res)) {
if (MergeUtil::isSame(oldRes, res)) {
res = JsonLdDocument::apply(oldRes, res);
resId = oldResId;
oldResFound = true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment