Fix database error ""Unknown column 'parent-item.author-id'"
This commit is contained in:
parent
91c843608b
commit
8f1635d8fd
1 changed files with 1 additions and 1 deletions
|
@ -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`";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue