Closed (fixed)
Project:
Project
Version:
5.x-1.x-dev
Component:
Projects
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jan 2008 at 15:53 UTC
Updated:
28 Apr 2008 at 06:12 UTC
Jump to comment: Most recent file
As soon as the themes ( http://drupal.org/project/Themes ) are filtered (other than ), their thumbnail disappear.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 211188_project_overview_type_13.patch | 1.25 KB | aclight |
Comments
Comment #1
dwwYup. Weird. I don't know what would be causing that, but it's a problem in the drupal.org theme ("bluebeach"). I think it was killes who added those project thumbnails originally, perhaps he knows what the filtering might have to do with it. Certainly, the download links change when you filter... there's no longer a download table, but a single "download" link. Maybe he tied the thumbnail to the download table somehow?
Comment #2
killes@www.drop.org commentedActually no, it is a project* problem. The module uses a different theme function for output when the users filters the output.
Comment #3
dwwUhh, no it's not... Look in project.module and tell me where you think this is happening. I see the following on line 812:
That's called regardless of version filtering. There are different theme functions called if the table is present or not, since the download link is one theme function and the download table is another. But, as far as I can see, theme('project_summary') is called in both cases. It's entirely possible there's some other problem, but separate theme functions isn't it. For example, perhaps the $project object being passed in (which is *not* a fully node_load()'ed node object) has different fields in the two cases, and that's somehow confusing the image_attach code in the theme function?
Comment #4
killes@www.drop.org commentedYeah, I was wrong there, it must have to do with not the same fields being present.
It is a bit stange as the template only requires the node ID to find the attached image...
Comment #5
dww@killes: could it be the caching of project_page_overview: that's locally installed on d.o? Should we completely flush that cache on d.o and see if that helps?
side note: it's a pain that's a local patch on d.o. we should really commit that "upstream".
Comment #6
killes@www.drop.org commentedI don't think this is related to the patch.
You are free to take the patch and apply it. You thought it was ugly, though.
Comment #7
catchhttp://drupal.org/node/234934 was duplicate.
Comment #8
aclight commentedWe've had a few duplicates of this issue recently (such as #237839: Filtered project list shows unsupported releases), so I'm changing the name of this issue to better reflect what is happening.
Comment #9
salvisInviting people to download unsupported releases is more than a cosmetic problem (like thumbnails not showing)!
Since this has lingered for two months, I'm upping priority and moving the issue where cwgordon7 moved my duplicate (#237839: Filtered project list shows unsupported releases).
It does look like the filtered view simply takes an old code path that hasn't been updated.
Comment #10
aclight commentedI don't think the problem of having development snapshot releases show up when the project overview page is not filtered (if this is even to be considered a problem) is due to the project module itself. On a clean install on a site using the drupal.org testing installation profile, I don't see snapshot releases on the project overview page regardless of whether or not I am filtering by version.
I'm putting this back in the infrastructure queue, since my best guess is that bluebeach is overriding theme_project_summary() and the override is specifying that development snapshots be included in the table.
If someone with access to bluebeach can send me the override of theme_project_summary(), if one exists, I could take a look at this and at least confirm that the theme is causing this.
Comment #11
dwwComment #12
salvisThe problem I reported in #237839: Filtered project list shows unsupported releases is very different from what you're summing up here. I'm not convinced it's a theming issue, either, and it wasn't my idea to mark it as a duplicate of this one...
Hint 1: UNSUPPORTED development snapshot release vs. supported development snapshot release
Hint 2: the issue occurs when the page IS filtered.
Comment #13
aclight commentedIt turns out that in project_page_overview(), n.type was only being included in the query if the release filter was set to all. Image attach won't attach an image to a node if it doesn't know the node's type, and so in the teaser view with the project version filter set, no image was attached. This simple patch fixes the problem on a local test site.
Comment #14
gerhard killesreiter commentedThis patch has found to be working and was deployed on d.o.
Comment #15
dwwAhh, makes sense. Reviewed and looks great. Committed to HEAD and DRUPAL-5. Thanks!
Comment #16
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.