Browse Source

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

pull/8832/head
Michael 2 years ago
parent
commit
8f1635d8fd
  1. 2
      src/Model/Item.php

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

Loading…
Cancel
Save