CMS MADE SIMPLE FORGE

Uploads

 

[#3109] When Multiple scan or display files appears several times

avatar
Created By: Rafael Posse (xpoppy)
Date Submitted: Wed Mar 04 17:05:31 -0500 2009

Assigned To:
Version: 1.4.1
CMSMS Version: None
Severity: Critical
Resolution: Fixed
State: Closed
Summary:
When Multiple scan or display files appears several times
Detailed Description:
When use scan category, file appears several times. It occurs when the files are
viewed with a summary template.

fix:
Uploads.module.php line 2170, 2178 (replace upload_thumb with upload_thumbnail):

$q = "SELECT upload_id,upload_thumbnail FROM
".cms_db_prefix()."module_uploads WHERE
            upload_name = ? AND upload_category_id = ?";
					$fileid = '';
					$thumb_name = '';
					$tmp = $db->GetRow( $q, array( $file, $category_id) );
					if( $tmp )
						{
							// we already know about this one
							$fileid = $tmp['upload_id'];
							$thumb_name = $tmp['upload_thumbnail'];


History

Comments
avatar
Date: 2009-03-25 14:38
Posted By: Jeremy Bass (jeremybass)

I can second this issue... just not the fix yet... 
      
avatar
Date: 2009-03-25 14:39
Posted By: Jeremy Bass (jeremybass)

Sorry for got... 

http://forum.cmsmadesimple.org/index.php/topic,32379.0.html

Cheers, Jeremy
      
Updates

Updated: 2009-03-26 06:44
resolution_id: 5 => 7
state: Open => Closed

Updated: 2009-03-04 17:54
description: When use scan category, file appears several times. It occurs when the files are viewed with a summary template. => When use scan category, file appears several times. It occurs when the files are viewed with a summary template. fix: Uploads.module.php line 2170, 2178 (replace upload_thumb with upload_thumbnail): $q = "SELECT upload_id,upload_thumbnail FROM
resolution_id: => 5