Skip to content

Commit

Permalink
Merge pull request #5971 from JediKev/search/child-thread-relation
Browse files Browse the repository at this point in the history
Reviewed-By: Peter Rotich <peter@osticket.com>
  • Loading branch information
protich committed Oct 7, 2021
2 parents f0a58ed + 08785f9 commit e90d3be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/class.queue.php
Expand Up @@ -381,7 +381,8 @@ static function getSearchableFields($base, $recurse=2,
$exclude[$base] = 1;
foreach ($base::getMeta('joins') as $path=>$j) {
$fc = $j['fkey'][0];
if (isset($exclude[$fc]) || $j['list'])
if (isset($exclude[$fc]) || $j['list']
|| (isset($j['searchable']) && !$j['searchable']))
continue;
foreach (static::getSearchableFields($fc, $recurse-1,
true, $exclude)
Expand Down
1 change: 1 addition & 0 deletions include/class.ticket.php
Expand Up @@ -88,6 +88,7 @@ class Ticket extends VerySimpleModel
'ticket_id' => 'TicketThread.object_id',
"'C'" => 'TicketThread.object_type',
),
'searchable' => false,
'null' => true,
),
'cdata' => array(
Expand Down

0 comments on commit e90d3be

Please sign in to comment.