From 8f1635d8fd565354e77b58f94cea4e44d467b048 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 30 Jun 2020 05:49:22 +0000 Subject: [PATCH] Fix database error ""Unknown column 'parent-item.author-id'" --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 887072eb85..636a98ae4f 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -787,7 +787,7 @@ class Item $joins .= " LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`"; } - if ((strpos($sql_commands, "`parent-item`.") !== false) || (strpos($sql_commands, "`parent-author`.") !== false)) { + if ((strpos($sql_commands, "`parent-item`.") !== false) || (strpos($sql_commands, "`parent-item-author`.") !== false)) { $joins .= " STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`id` = `item`.`parent`"; }