plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
Attachments all showing duplicated first thumbnail  (#11782)
Issue

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:

http://www.xoolon.com/thumbnails/test#idxvYZprkGdI4CBb1wN4-vKQ

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>" />
                    <tmpl_else>
                        <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>
                    </tmpl_if>
                </a>
            </div>
        </tmpl_loop>
        <div style="clear: both;"></div>
    <br />
</tmpl_if>

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


In Post.pm 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.
perlDreamer
0
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)
Details
Ticket Status Resolved  
Rating0.0 
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  
URLuse/bugs/tracker/11782
Keywords
Ticket History
8/16/2010
4:10 PM
Resolved perlDreamer
8/16/2010
6:26 AM
Assigned to perlDreamer perlDreamer
8/13/2010
4:55 PM
Ticket created xootom
© 2019 Plain Black Corporation | All Rights Reserved