Commit f0f6bf4b authored by chealer's avatar chealer

[FIX] List comments: SQL errors "Column 'objectType' in where clause is...

[FIX] List comments: SQL errors "Column 'objectType' in where clause is ambiguous" when a category filter is set (from r20568)
parent 67aa46ec
...@@ -2026,7 +2026,7 @@ class Comments extends TikiLib ...@@ -2026,7 +2026,7 @@ class Comments extends TikiLib
global $categlib; require_once 'lib/categories/categlib.php'; global $categlib; require_once 'lib/categories/categlib.php';
if ($jail = $categlib->get_jail()) { if ($jail = $categlib->get_jail()) {
$categlib->getSqlJoin($jail, '`objectType`', '`object`', $jail_join, $jail_where, $jail_bind, '`objectType`'); $categlib->getSqlJoin($jail, '`objectType`', 'tc.`object`', $jail_join, $jail_where, $jail_bind, 'tc.`objectType`');
} else { } else {
$jail_join = ''; $jail_join = '';
$jail_where = ''; $jail_where = '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment