ThreadItemStore: Fix setting parent IDs when parent already existed

Bug: T322599
Change-Id: I697de586fb3c1b1901f434f6fbef501cec3164df
This commit is contained in:
Bartosz Dziewoński 2022-11-08 01:38:31 +01:00
parent 45790f67e9
commit 759e6b757a

View file

@ -553,10 +553,10 @@ class ThreadItemStore {
);
$itemRevisionsId = $dbw->insertId();
}
$itemRevisionsIds[ $item->getId() ] = $itemRevisionsId;
$didInsert = true;
}
$itemRevisionsIds[ $item->getId() ] = $itemRevisionsId;
}
}, $dbw::ATOMIC_CANCELABLE );