From b171fb1f241497ff3e94128918ae0a8d628cc088 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 22 Mar 2018 16:18:49 +0000 Subject: [PATCH] Fix: Items with "uid=0" always had the "parent-uri" as "thr-parent" --- src/Model/Item.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Model/Item.php b/src/Model/Item.php index 292301a4e9..efcf05ad6a 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -356,6 +356,10 @@ class Item extends BaseObject } } + if (!empty($item['thr-parent'])) { + $item['parent-uri'] = $item['thr-parent']; + } + if (x($item, 'gravity')) { $item['gravity'] = intval($item['gravity']); } elseif ($item['parent-uri'] === $item['uri']) {