Fix database error ""Unknown column 'parent-item.author-id'"

This commit is contained in:
Michael 2020-06-30 05:49:22 +00:00
parent 91c843608b
commit 8f1635d8fd

View file

@ -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`";
}