We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#2994 closed Defect (fixed)

Group search listing error?

Reported by: emdagon Owned by:
Priority: normal Milestone: Elgg 1.7.8
Component: Search Version: 1.7
Severity: annoying Keywords: search, group
Cc: brett@… Difficulty:

Description

Hi, I just notice the following issue:

In mod/search/search_hooks.php I found this fragment

(line 94)
foreach ($entities as $entity) {

$description = search_get_highlighted_relevant_substrings($entity->description, $query);
$entity->setVolatileData('search_matched_title', $description);

$name = search_get_highlighted_relevant_substrings($entity->name, $query);
$entity->setVolatileData('search_matched_description', $name);

}

Why $description is seted to search_matched_title and backwards?

As consequence of this, the listing shows the group description as title (as a link to the group)

Thanks!

Change History (3)

comment:1 Changed 2 years ago by ewinslow

  • Milestone changed from Needs Review to Elgg 1.7.8

Thanks for the report! I had noticed this too in our install and don't know why I never thought to submit it as a bug.

comment:2 Changed 2 years ago by cash

  • Resolution set to fixed
  • Status changed from new to closed

(In [svn:8728]) Fixes #2994 search title for group uses name instead of description

comment:3 Changed 2 years ago by cash

(In [svn:8916]) Refs #2994 added group search fix from 1.7 branch to trunk

Note: See TracTickets for help on using tickets.