CMS MADE SIMPLE FORGE

Uploads

 

[#11904] Send the file title instead of the file name to search module

avatar
Created By: cyrcle (cyrcle)
Date Submitted: Mon Oct 01 14:52:37 -0400 2018

Assigned To: Robert Campbell (calguy1000)
Version: 1.25.8
CMSMS Version: 2.2.8
Severity: Minor
Resolution: None
State: Open
Summary:
Send the file title instead of the file name to search module
Detailed Description:
In the results returned by the Search module concerning an indexed file in the
Uploads module, the "urltxt" variable receives the file name stead of the file
title / summary.
For example: "2016_02_workshop_annex_3.pdf" instead of "Annex 3 : Relevance of
bioaccessibility"

To fix this, it seems necessary to modify the SearchResult function in
Uploads.module.php
Line 528, replace:
$result[1] = $details['upload_name'];
by :
$result[1] = $details['upload_summary'];

Thanks


History