Username Password
Bookmark and Share
View All Tickets
Attachments all showing duplicated first thumbnail  (#11782)

Two sites on my server are showing a problem since upgrading to 7.9.x yesterday; when a submission in a collaboration system has a series of attachments, they all show the same thumbnail. Clicking on each shows the correct original image though. So the href is right, but it's as if the thumbnail src isn't looping through.

Here is an example I just put up:

Don't think it's template issues as both sites affected use different templates. However I can't reproduce it on the WG demo site. What could be causing it?

The template in use is the standard Default Submission, unmodified (last modified 2 days ago with the WG update).

<tmpl_if attachment_loop>
    <br />
        <tmpl_loop attachment_loop>
            <div style="float: left; padding: 5px;">
                <a href="<tmpl_var url>">
                    <tmpl_if isImage>
                        <img src="<tmpl_var thumbnail>" style="border-style:none;" alt="<tmpl_var filename>" />
                        <img src="<tmpl_var icon>" style="border-style:none;vertical-align:middle;" alt="<tmpl_var filename>" /></a> <a href="<tmpl_var url>"><tmpl_var filename>
        <div style="clear: both;"></div>
    <br />

Solution Summary
8/16/2010 8:29 am
I had the same problem on my site. Note, that currently the Demo sites at are under 7.8.24.

In of WebGUI 7.9.12:
in line 785 $var{"image.thumbnail"}  is renewed only if the image is the first image (see $gotImage). Later $var{"image.thumbnail"} is used in line 796 to write "thumbnail".

May be lines 796-798 should look more like those in 7.8.24 for "thumbnail" (and actually "icon") to be updated for each file in the attachement ?

icon      =>$storage->getFileIconUrl($filename),
filename  =>$filename,
thumbnail =>$storage->getThumbnailUrl($filename),

At least this worked for me.
8/16/2010 11:10 am
Change the Post to lookup the icon for all attachments, and the thumbnail for all images.

Fixed in 7.9.13 (7976066)
Ticket Status Resolved  
Submitted Byxootom 
Date Submitted2010-08-13 
Assigned To perlDreamer  
Date Assigned2010-08-16 
Assigned ByperlDreamer 
Severity Minor (annoying, but not harmful)  
What's the bug in? WebGUI Stable  
WebGUI / WRE Version 7.9.12  
Ticket History
4:10 PM
Resolved perlDreamer
6:26 AM
Assigned to perlDreamer perlDreamer
4:55 PM
Ticket created xootom
© 2020 Plain Black Corporation | All Rights Reserved